#ifndef __NVIF_OBJECT_H__
#define __NVIF_OBJECT_H__
#include <nvif/os.h>
struct nvif_sclass { … };
struct nvif_object { … };
static inline bool
nvif_object_constructed(struct nvif_object *object)
{ … }
int nvif_object_ctor(struct nvif_object *, const char *name, u32 handle,
s32 oclass, void *, u32, struct nvif_object *);
void nvif_object_dtor(struct nvif_object *);
int nvif_object_ioctl(struct nvif_object *, void *, u32, void **);
int nvif_object_sclass_get(struct nvif_object *, struct nvif_sclass **);
void nvif_object_sclass_put(struct nvif_sclass **);
u32 nvif_object_rd(struct nvif_object *, int, u64);
void nvif_object_wr(struct nvif_object *, int, u64, u32);
int nvif_object_mthd(struct nvif_object *, u32, void *, u32);
int nvif_object_map_handle(struct nvif_object *, void *, u32,
u64 *handle, u64 *length);
void nvif_object_unmap_handle(struct nvif_object *);
int nvif_object_map(struct nvif_object *, void *, u32);
void nvif_object_unmap(struct nvif_object *);
#define nvif_handle(a) …
#define nvif_object(a) …
#define nvif_rd(a,f,b,c) …
#define nvif_wr(a,f,b,c,d) …
#define nvif_rd08(a,b) …
#define nvif_rd16(a,b) …
#define nvif_rd32(a,b) …
#define nvif_wr08(a,b,c) …
#define nvif_wr16(a,b,c) …
#define nvif_wr32(a,b,c) …
#define nvif_mask(a,b,c,d) …
#define nvif_mthd(a,b,c,d) …
struct nvif_mclass { … };
#define nvif_mclass(o,m) …
#define nvif_sclass(o,m,u) …
#define NVIF_RD32_(p,o,dr) …
#define NVIF_WR32_(p,o,dr,f) …
#define NVIF_RD32(p,A...) …
#define NVIF_RV32(p,A...) …
#define NVIF_TV32(p,A...) …
#define NVIF_TD32(p,A...) …
#define NVIF_WR32(p,A...) …
#define NVIF_WV32(p,A...) …
#define NVIF_WD32(p,A...) …
#define NVIF_MR32(p,A...) …
#define NVIF_MV32(p,A...) …
#define NVIF_MD32(p,A...) …
#include <core/object.h>
#define nvxx_object(a) …
#endif