FreeBSD/Linux Kernel Cross Reference
sys/dev/marvell/README
1 External m.d. interface points:
2
3 To config, code should configure 'gt' with a struct gtbus_attach_args
4 filled in. The code should have already set up the bus_space and
5 bus_dma tags that are passed in.
6
7 m.d. pci_chipset_tag_t should contain at least a copy of the
8 gtpci_chipset_tag_t data structure.
9
10 m.d. code must provide the following functions:
11
12 pci_intr_map
13 pci_intr_string
14 pci_intr_establish,
15 pci_intr_disestablish
16
17 void *gtmpp_intr_establish(struct gt_softc *gt, int mpp_pin, int ipl,
18 int (*handler)(void *), void *arg);
19 Add an interrupt attached to Discovery MPP pin <mpp_pin> at
20 the given ipl with the given handler.
21
22 void gtmpp_intr_disestablish(struct gt_softc *gt, void *cookie);
23 Remove an interrupt attached to Discovery MPP pin.
24
25 int gtget_macaddr(struct gt_softc *gt, int function, char *enaddr);
26 Get MAC for Discovery ethernet <function>
27
28 void intr_enable(void);
29 Enable all interrupts (disregarding spls)
30
31 void intr_disable(void);
32 Disable all interrupts (disregarding spls)
33
Cache object: f0479703975e5a2774a4b6c392538e5a
|