NetBSD/sys/dev/marvell
scw 5d1801d88f Use underscores to prefix local variables in macros. 2005-06-03 11:22:08 +00:00
..
README
files.discovery Add entry for gti2c.c 2005-02-01 20:59:15 +00:00
gt.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtbrgreg.h
gtethreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gti2c.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gti2creg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtidma.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtidmareg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtidmavar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtintrreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtmpsc.c Use underscores to prefix local variables in macros. 2005-06-03 11:22:08 +00:00
gtmpscreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtmpscvar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtpci.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtpcireg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtpcivar.h Add basic support for non-PCI host mode. 2003-06-12 19:18:49 +00:00
gtreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtsdmareg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
gtvar.h Add I2C child hooks. 2005-02-01 20:37:09 +00:00
if_gfe.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_gfevar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
obio.c a round of autoconf cleanup: 2004-09-13 12:55:47 +00:00

README

External m.d. interface points:

To config, code should configure 'gt' with a struct gtbus_attach_args
filled in.  The code should have already set up the bus_space and
bus_dma tags that are passed in.

m.d. pci_chipset_tag_t should contain at least a copy of the
gtpci_chipset_tag_t data structure.

m.d. code must provide the following functions:

pci_intr_map
pci_intr_string
pci_intr_establish,
pci_intr_disestablish

void *gtmpp_intr_establish(struct gt_softc *gt, int mpp_pin, int ipl,
		     int (*handler)(void *), void *arg);
	Add an interrupt attached to Discovery MPP pin <mpp_pin> at
	the given ipl with the given handler.

void gtmpp_intr_disestablish(struct gt_softc *gt, void *cookie);
	Remove an interrupt attached to Discovery MPP pin.

int gtget_macaddr(struct gt_softc *gt, int function, char *enaddr);
	Get MAC for Discovery ethernet <function>

void intr_enable(void);
	Enable all interrupts (disregarding spls)

void intr_disable(void);
	Disable all interrupts (disregarding spls)