ahci.c 485 B

12345678910111213141516171819
  1. #include "ahci.h"
  2. #include "../../../common/kprint.h"
  3. struct pci_device_structure_header_t *ahci_devices[100];
  4. uint32_t count_ahci_devices = 0;
  5. /**
  6. * @brief 初始化ahci模块
  7. *
  8. */
  9. void ahci_init()
  10. {
  11. pci_get_device_structure(0x1, 0x6, ahci_devices, &count_ahci_devices);
  12. for(int i=0;i<count_ahci_devices;++i)
  13. {
  14. kdebug("[%d] class_code=%d, sub_class=%d, progIF=%d", i, ahci_devices[i]->Class_code, ahci_devices[i]->SubClass, ahci_devices[i]->ProgIF);
  15. }
  16. }