20 #include "modules/Module.h" 21 #include "pedigree/kernel/Log.h" 22 #include "pedigree/kernel/machine/Device.h" 23 #include "pedigree/kernel/machine/openfirmware/Device.h" 24 #include "pedigree/kernel/processor/Processor.h" 25 #include "pedigree/kernel/processor/types.h" 27 static void searchNode(
Device *pDev)
40 for (
int j = 0; j < pChild->
addresses().count(); j++)
42 if (pChild->
addresses()[j]->m_Name ==
"bar0")
44 if (pChild->
addresses()[j]->m_Name ==
"bar1")
53 dev.getProperty(
"compatible", compatible);
55 if (compatible ==
"keylargo-ata")
62 dev.getProperty(
"reg", ®, 4);
64 for (
unsigned int j = 0;
75 String(
"command"), reg, 0x160,
false,
78 String(
"control"), reg + 0x160,
102 MODULE_NAME(
"ata-specific");
103 MODULE_ENTRY(&entry);
Device * getChild(size_t n)
virtual String getSpecificType()
virtual Vector< Address * > & addresses()
Device * getParent() const