123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef _DEVICE_H_
- #define _DEVICE_H_
- struct uio;
- struct device {
- int (*d_open)(struct device *, int flags_from_open);
- int (*d_close)(struct device *);
- int (*d_io)(struct device *, struct uio *);
- int (*d_ioctl)(struct device *, int op, userptr_t data);
- blkcnt_t d_blocks;
- blksize_t d_blocksize;
- dev_t d_devnumber;
- void *d_data;
- };
- struct vnode *dev_create_vnode(struct device *dev);
- void devnull_create(void);
- void dev_bootstrap(void);
- #endif
|