version 1.2, 2006/06/13 03:58:12 |
version 1.2.12.1, 2006/10/22 06:05:24 |
Line 30 struct ndis_resource{ |
|
Line 30 struct ndis_resource{ |
|
bus_size_t res_size; |
bus_size_t res_size; |
}; |
}; |
|
|
int bus_release_resource(dev, type, rid, r) |
int |
device_t dev; |
bus_release_resource(device_t dev __unused, int type, int rid __unused, |
int type; |
struct ndis_resource *r) |
int rid; |
|
struct ndis_resource *r; |
|
{ |
{ |
switch(type) { |
switch(type) { |
case SYS_RES_IOPORT: |
case SYS_RES_IOPORT: |
Line 50 int bus_release_resource(dev, type, rid, |
|
Line 48 int bus_release_resource(dev, type, rid, |
|
return 0; |
return 0; |
} |
} |
|
|
void mtx_lock(struct mtx *mutex) |
void |
|
mtx_lock(struct mtx *mutex __unused) |
{ |
{ |
/* I'm not sure if this is needed or not. NetBSD kernel |
/* I'm not sure if this is needed or not. NetBSD kernel |
* threads aren't preempted, but there still may be a need |
* threads aren't preempted, but there still may be a need |
Line 59 void mtx_lock(struct mtx *mutex) |
|
Line 58 void mtx_lock(struct mtx *mutex) |
|
//lockmgr(mutex, LK_EXCLUSIVE, NULL); |
//lockmgr(mutex, LK_EXCLUSIVE, NULL); |
} |
} |
|
|
void mtx_unlock(struct mtx *mutex) |
void |
|
mtx_unlock(struct mtx *mutex __unused) |
{ |
{ |
//lockmgr(mutex, LK_RELEASE, NULL); |
//lockmgr(mutex, LK_RELEASE, NULL); |
} |
} |
|
|
int device_is_attached(dev) |
int |
device_t dev; |
device_is_attached(device_t dev __unused) |
{ |
{ |
/* Sure, it's attached? */ |
/* Sure, it's attached? */ |
return TRUE; |
return TRUE; |