home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Headers / driverkit / IODeviceDescription.h < prev    next >
Text File  |  1994-07-26  |  1KB  |  52 lines

  1. /*     Copyright (c) 1993 NeXT Computer, Inc.  All rights reserved. 
  2.  *
  3.  * IODeviceDescription.h.
  4.  *
  5.  * HISTORY
  6.  * 08-Jan-93    Doug Mitchell at NeXT
  7.  *      Created. 
  8.  */
  9.  
  10. #import <objc/Object.h>
  11. #import <mach/port.h>
  12. #import <driverkit/IOConfigTable.h>
  13. #import <driverkit/driverTypes.h>
  14.  
  15. /*
  16.  * IODeviceDescription object. This describes a
  17.  * configured instance of a device.
  18.  */
  19. @interface IODeviceDescription : Object
  20. {
  21. @private
  22.     port_t        _devicePort;
  23.     id        _directDevice;
  24.     id        _delegate;
  25.     void        *_private;
  26.     int        _IODeviceDescription_reserved[3];
  27. }
  28.  
  29. - (port_t)devicePort;
  30. - (void)setDevicePort         : (port_t)devicePort;
  31. - directDevice;
  32. - (void)setDirectDevice     : directDevice;
  33. - (void)setConfigTable         : (IOConfigTable *)configTable;
  34. - (IOConfigTable *)configTable;
  35.  
  36. @end    /* IODeviceDescription */
  37.  
  38. @interface IODeviceDescription(IOInterrupt)
  39. - (unsigned int) interrupt;
  40. - (unsigned int *) interruptList;
  41. - (unsigned int) numInterrupts;
  42. - (IOReturn) setInterruptList    : (unsigned int *)list 
  43.                     num : (unsigned int) numInterrupts;
  44. @end
  45.  
  46. @interface IODeviceDescription(IOMemory)
  47. - (IORange *) memoryRangeList;
  48. - (unsigned int) numMemoryRanges;
  49. - (IOReturn) setMemoryRangeList    : (IORange *)list
  50.                 num : (unsigned int) numRanges;
  51. @end
  52.