2 #include <reg-82801b.h>
7 static uint16_t _get_PMBASE()
9 static long pmbase = -1;
12 pmbase = pci_read32(ICH2_LPC_BUS, ICH2_LPC_DEV, ICH2_LPC_FN, ICH2_LPC_PCI_PMBASE) & ICH2_PMBASE_MASK;
18 extern unsigned int poke(unsigned long addr);
20 int main(int argc, char **argv)
30 res = poke(_get_PMBASE() + 0x04);
31 printf("found %p\n", res);