]> git.proxmox.com Git - mirror_spl-debian.git/blob - include/sys/sunldi.h
- Remapped ldi_handle_t to struct block_device * which is much more useful
[mirror_spl-debian.git] / include / sys / sunldi.h
1 #ifndef _SPL_SUNLDI_H
2 #define _SPL_SUNLDI_H
3
4 #include <sys/types.h>
5 #include <linux/fs.h>
6 #include <linux/genhd.h>
7 #include <linux/hdreg.h>
8 #include <linux/bio.h>
9
10 #define SECTOR_SIZE 512
11
12 typedef struct modlinkage {
13 int ml_rev;
14 struct modlfs *ml_modlfs;
15 struct modldrv *ml_modldrv;
16 major_t ml_major;
17 unsigned ml_minors;
18 void *pad1;
19 } modlinkage_t;
20
21 typedef struct ldi_ident {
22 char li_modname[MAXNAMELEN];
23 dev_t li_dev;
24 } *ldi_ident_t;
25
26 typedef struct block_device *ldi_handle_t;
27
28 extern int ldi_ident_from_mod(struct modlinkage *modlp, ldi_ident_t *lip);
29 extern void ldi_ident_release(ldi_ident_t li);
30
31 #endif /* SPL_SUNLDI_H */