Changeset 1999 for Whitix

Show
Ignore:
Timestamp:
04/02/09 21:08:35 (3 years ago)
Author:
mwhitworth
Message:

Add KeBusEntry (every device is linked to a bus somewhere) and pointer to driver.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/include/devices/device.h

    r1625 r1999  
    2626#define KEDEVICE_H 
    2727 
     28#include "bus.h" 
     29#include "driver.h" 
     30 
    2831#include <keobject.h> 
    2932 
     
    4245        DevId devId; 
    4346        DWORD type; /* Move to a KeDeviceClass structure soon. */ 
     47        struct KeDriver* driver; 
     48         
     49        /* Every device has a bus entry somewhere. */ 
     50        struct KeBusEntry entry; 
    4451         
    4552        union 
     
    99106} 
    100107 
     108void KeDeviceLock(struct KeDevice* device); 
     109void KeDeviceUnlock(struct KeDevice* device); 
     110 
    101111#endif