NetBSD/sys/dev/marvell
elad bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
..
files.discovery merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gt.c Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
gtbrgreg.h
gtethreg.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gti2c.c use the "i2cbus" interface attribute rather than putting a string name 2006-06-26 18:21:38 +00:00
gti2creg.h Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings. 2006-03-08 23:46:22 +00:00
gtidma.c Use device_private(). 2006-03-29 06:51:47 +00:00
gtidmareg.h Change "inline" back to "__inline" in .h files -- C99 is still too 2006-02-16 20:17:12 +00:00
gtidmavar.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gtintrreg.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gtmpsc.c Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks! 2006-10-01 19:28:43 +00:00
gtmpscreg.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gtmpscvar.h Remove another instance of the SET/CLR/ISSET macro triplet, now found 2006-03-06 08:13:58 +00:00
gtpci.c Use device_private(). 2006-03-29 06:51:47 +00:00
gtpcireg.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gtpcivar.h Change "inline" back to "__inline" in .h files -- C99 is still too 2006-02-16 20:17:12 +00:00
gtreg.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gtsdmareg.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
gtvar.h 'volatile' is not a valid return type qualifier - remove it. 2006-05-24 21:22:36 +00:00
if_gfe.c Use device_private(). 2006-03-29 06:51:47 +00:00
if_gfevar.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
obio.c Use device_private(). 2006-03-29 06:51: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)