Lines Matching defs:tgdk_obj
42 struct tgdk_obj {
75 int (*tg_free)(struct tgdk_obj *);
93 void (*tg_cleanup)(struct tgdk_obj *);
97 struct tgdk_obj *dadk_create();
99 #define TGDK_GETNODETYPE(X) (((struct tgdk_obj *)(X))->tg_ext->tg_nodetype)
101 (((struct tgdk_obj *)(X))->tg_ext->tg_nodetype = (char *)(Y))
102 #define TGDK_RMB(X) (((struct tgdk_obj *)(X))->tg_ext->tg_rmb)
103 #define TGDK_RDONLY(X) (((struct tgdk_obj *)(X))->tg_ext->tg_rdonly)
104 #define TGDK_GETCTYPE(X) (((struct tgdk_obj *)(X))->tg_ext->tg_ctype)
108 (*((struct tgdk_obj *)(X))->tg_ops->tg_init) \
109 (((struct tgdk_obj *)(X))->tg_data, (devp), (flcobjp), \
112 (*((struct tgdk_obj *)(X))->tg_ops->tg_init) \
113 (((struct tgdk_obj *)(X))->tg_data, (devp), (flcobjp), \
115 #define TGDK_FREE(X) (*((struct tgdk_obj *)(X))->tg_ops->tg_free) ((X))
116 #define TGDK_PROBE(X, WAIT) (*((struct tgdk_obj *)(X))->tg_ops->tg_probe) \
117 (((struct tgdk_obj *)(X))->tg_data, (WAIT))
118 #define TGDK_ATTACH(X) (*((struct tgdk_obj *)(X))->tg_ops->tg_attach) \
119 (((struct tgdk_obj *)(X))->tg_data)
120 #define TGDK_OPEN(X, flag) (*((struct tgdk_obj *)(X))->tg_ops->tg_open) \
121 (((struct tgdk_obj *)(X))->tg_data, (flag))
122 #define TGDK_CLOSE(X) (*((struct tgdk_obj *)(X))->tg_ops->tg_close) \
123 (((struct tgdk_obj *)(X))->tg_data)
125 (*((struct tgdk_obj *)(X))->tg_ops->tg_ioctl) \
126 (((struct tgdk_obj *)(X))->tg_data, (dev), (cmd), (arg), (flag), \
128 #define TGDK_STRATEGY(X, bp) (*((struct tgdk_obj *)(X))->tg_ops->tg_strategy) \
129 (((struct tgdk_obj *)(X))->tg_data, (bp))
130 #define TGDK_GETGEOM(X, datap) (*((struct tgdk_obj *)(X))->tg_ops->tg_getgeom) \
131 (((struct tgdk_obj *)(X))->tg_data, (datap))
132 #define TGDK_SETGEOM(X, datap) (*((struct tgdk_obj *)(X))->tg_ops->tg_setgeom) \
133 (((struct tgdk_obj *)(X))->tg_data, (datap))
135 (*((struct tgdk_obj *)(X))->tg_ops->tg_iob_alloc) \
136 (((struct tgdk_obj *)(X))->tg_data, (logblk), (xfer), (sleep))
138 (*((struct tgdk_obj *)(X))->tg_ops->tg_iob_free) \
139 (((struct tgdk_obj *)(X))->tg_data, (datap))
141 (*((struct tgdk_obj *)(X))->tg_ops->tg_iob_htoc) \
142 (((struct tgdk_obj *)(X))->tg_data, (handle))
144 (*((struct tgdk_obj *)(X))->tg_ops->tg_iob_xfer) \
145 (((struct tgdk_obj *)(X))->tg_data, (handle), B_READ)
147 (*((struct tgdk_obj *)(X))->tg_ops->tg_iob_xfer) \
148 (((struct tgdk_obj *)(X))->tg_data, (handle), B_WRITE)
149 #define TGDK_DUMP(X, bp) (*((struct tgdk_obj *)(X))->tg_ops->tg_dump) \
150 (((struct tgdk_obj *)(X))->tg_data, (bp))
152 (*((struct tgdk_obj *)(X))->tg_ops->tg_getphygeom) \
153 (((struct tgdk_obj *)(X))->tg_data, (datap))
155 (*((struct tgdk_obj *)(X))->tg_ops->tg_set_bbhobj) \
156 (((struct tgdk_obj *)(X))->tg_data, (objp))
158 (*((struct tgdk_obj *)(X))->tg_ops->tg_check_media) \
159 (((struct tgdk_obj *)(X))->tg_data, (state))
161 (*((struct tgdk_obj *)(X))->tg_ops->tg_inquiry) \
162 (((struct tgdk_obj *)(X))->tg_data, (inqpp))
163 #define TGDK_CLEANUP(X) (*((struct tgdk_obj *)(X))->tg_ops->tg_cleanup) ((X))