NetBSD/sys/dev/marvell
scw dd3614f13a When attaching, make sure the "Reject Broadcast Mode", "Promiscuous Mode"
and "Pass Bad Frames" bits in the EPCR register are clear.

This works around a problem where firmware sets RBM for some reason before
handing control to the NetBSD kernel.
2003-04-10 15:23:19 +00:00
..
files.discovery Add GT_PCI{0,1}_{IO,MEM}{SIZE,START} options 2003-03-27 07:21:30 +00:00
gt.c
gtbrgreg.h
gtethreg.h Use a subregion for the mac's ethernet registers. Shaves 512 bytes 2003-03-17 16:41:15 +00:00
gtidma.c Use PAGE_SIZE rather than NBPG. 2003-04-08 22:33:33 +00:00
gtidmareg.h
gtidmavar.h
gtintrreg.h
gtmpsc.c Use PAGE_SIZE rather than NBPG. 2003-04-08 22:33:33 +00:00
gtmpscreg.h
gtmpscvar.h Make gtmpsc configurable via config file. (baud rate source, frequency). 2003-03-24 17:02:14 +00:00
gtpci.c Remove #define DEBUG. (this was working right. The problem I encountered 2003-04-04 20:09:07 +00:00
gtpcireg.h Fix tyops. Add 2 defines. 2003-03-24 17:03:18 +00:00
gtpcivar.h Cleanup PCI support. 2003-04-01 19:11:44 +00:00
gtreg.h
gtsdmareg.h
gtvar.h Split PCI initialization out of attach hook. 2003-03-18 19:32:46 +00:00
if_gfe.c When attaching, make sure the "Reject Broadcast Mode", "Promiscuous Mode" 2003-04-10 15:23:19 +00:00
if_gfevar.h Use PAGE_SIZE rather than NBPG. 2003-04-08 23:39:14 +00:00
obio.c Only print IRQ is it's not the default value. 2003-03-27 07:20:48 +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)