《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
402 B

12 years ago
  1. #ifndef __KERN_DRIVER_IDE_H__
  2. #define __KERN_DRIVER_IDE_H__
  3. #include <defs.h>
  4. void ide_init(void);
  5. bool ide_device_valid(unsigned short ideno);
  6. size_t ide_device_size(unsigned short ideno);
  7. int ide_read_secs(unsigned short ideno, uint32_t secno, void *dst, size_t nsecs);
  8. int ide_write_secs(unsigned short ideno, uint32_t secno, const void *src, size_t nsecs);
  9. #endif /* !__KERN_DRIVER_IDE_H__ */