* Changed definition of driver_intr_t to the way it is defined in FreeBSD.
The internal_intr structure needed to be adapted accordingly, otherwise it would not compile anymore. This definition is needed by the aironet (if_an.c) driver I'm currently porting. * Extending FreeBSD compat layer a bit in preparation of porting the remaining wlan drivers. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34620 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6813f2c744
commit
3d9728baf9
@ -44,7 +44,7 @@
|
|||||||
struct internal_intr {
|
struct internal_intr {
|
||||||
device_t dev;
|
device_t dev;
|
||||||
driver_filter_t filter;
|
driver_filter_t filter;
|
||||||
driver_intr_t handler;
|
driver_intr_t *handler;
|
||||||
void *arg;
|
void *arg;
|
||||||
int irq;
|
int irq;
|
||||||
uint32 flags;
|
uint32 flags;
|
||||||
|
@ -66,7 +66,7 @@ int bus_generic_resume(device_t dev);
|
|||||||
void bus_generic_shutdown(device_t dev);
|
void bus_generic_shutdown(device_t dev);
|
||||||
|
|
||||||
typedef int (*driver_filter_t)(void *);
|
typedef int (*driver_filter_t)(void *);
|
||||||
typedef void (*driver_intr_t)(void *);
|
typedef void driver_intr_t(void *);
|
||||||
|
|
||||||
|
|
||||||
int resource_int_value(const char *name, int unit, const char *resname,
|
int resource_int_value(const char *name, int unit, const char *resname,
|
||||||
@ -103,6 +103,7 @@ void device_set_desc(device_t dev, const char *desc);
|
|||||||
void device_set_desc_copy(device_t dev, const char *desc);
|
void device_set_desc_copy(device_t dev, const char *desc);
|
||||||
const char *device_get_desc(device_t dev);
|
const char *device_get_desc(device_t dev);
|
||||||
device_t device_get_parent(device_t dev);
|
device_t device_get_parent(device_t dev);
|
||||||
|
u_int32_t device_get_flags(device_t dev);
|
||||||
|
|
||||||
void device_set_ivars(device_t dev, void *);
|
void device_set_ivars(device_t dev, void *);
|
||||||
void *device_get_ivars(device_t dev);
|
void *device_get_ivars(device_t dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user