NetBSD/sys/dev/marvell
hubertf eda05c6413 Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
..
README
files.discovery
gt.c Remove more duplicate headers. 2007-01-29 01:52:43 +00:00
gtbrgreg.h
gtethreg.h
gti2c.c use the "i2cbus" interface attribute rather than putting a string name 2006-06-26 18:21:38 +00:00
gti2creg.h
gtidma.c
gtidmareg.h
gtidmavar.h
gtintrreg.h
gtmpsc.c Remove more duplicate headers. 2007-01-29 01:52:43 +00:00
gtmpscreg.h
gtmpscvar.h
gtpci.c Remove more duplicate headers. 2007-01-29 01:52:43 +00:00
gtpcireg.h
gtpcivar.h
gtreg.h
gtsdmareg.h
gtvar.h
if_gfe.c
if_gfevar.h
obio.c Remove more duplicate headers. 2007-01-29 01:52:43 +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)