]> git.proxmox.com Git - mirror_spl-debian.git/blame - 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
CommitLineData
ea19fbed 1#ifndef _SPL_SUNLDI_H
2#define _SPL_SUNLDI_H
3
4e62fd41 4#include <sys/types.h>
0a6fd143 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
4e62fd41 11
12typedef 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
21typedef struct ldi_ident {
22 char li_modname[MAXNAMELEN];
23 dev_t li_dev;
24} *ldi_ident_t;
25
0a6fd143 26typedef struct block_device *ldi_handle_t;
4e62fd41 27
28extern int ldi_ident_from_mod(struct modlinkage *modlp, ldi_ident_t *lip);
29extern void ldi_ident_release(ldi_ident_t li);
ea19fbed 30
31#endif /* SPL_SUNLDI_H */