version 1.6, 2007/11/01 13:05:25 |
version 1.8, 2007/12/16 23:16:09 |
|
|
#define _SYS_DEVICE_H |
#define _SYS_DEVICE_H |
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#define DVNAMELEN 8 |
#define DVNAMELEN 9 |
|
|
struct device { |
struct device { |
// char dv_name[DVNAMELEN]; /* device name up to 7 chars */ |
// char dv_name[DVNAMELEN]; /* device name up to 7 chars */ |
|
|
char *ai_pname; /* parent device name */ |
char *ai_pname; /* parent device name */ |
uint8_t ai_pminor; /* parent minor */ |
uint8_t ai_pminor; /* parent minor */ |
uint32_t ai_locator; /* location on parent (0 - default) */ |
uint32_t ai_locator; /* location on parent (0 - default) */ |
uint8_t ai_intrno; /* interrupt line (XXX on IRQ Controller) */ |
int8_t ai_intrno; /* interrupt line (XXX on IRQ Controller) */ |
uint8_t ai_flags; /* flags passed to dr_attach() */ |
uint8_t ai_flags; /* flags passed to dr_attach() */ |
}; |
}; |
|
|