MCPcopy Create free account
hub / github.com/F-Stack/f-stack / piix_attach

Function piix_attach

freebsd/i386/i386/mp_clock.c:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126static int
127piix_attach(device_t dev)
128{
129 u_int32_t d;
130
131 d = pci_read_config(dev, 0x40, 4);
132 piix_timecounter_address = (d & 0xffc0) + 8;
133 piix_timecounter.tc_frequency = piix_freq;
134 tc_init(&piix_timecounter);
135 return (0);
136}
137
138static device_method_t piix_methods[] = {
139 /* Device interface */

Callers

nothing calls this directly

Calls 1

tc_initFunction · 0.85

Tested by

no test coverage detected