if_mn.c (246128) | if_mn.c (254263) |
---|---|
1/*- 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 */ --- 9 unchanged lines hidden (view full) --- 18 * 19 * The FALC54 and MUNICH32X have far too many registers and weird modes for 20 * comfort, so I have not bothered typing it all into a "fooreg.h" file, 21 * you will (badly!) need the documentation anyway if you want to mess with 22 * this gadget. 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 */ --- 9 unchanged lines hidden (view full) --- 18 * 19 * The FALC54 and MUNICH32X have far too many registers and weird modes for 20 * comfort, so I have not bothered typing it all into a "fooreg.h" file, 21 * you will (badly!) need the documentation anyway if you want to mess with 22 * this gadget. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/dev/mn/if_mn.c 246128 2013-01-30 18:01:20Z sbz $"); | 26__FBSDID("$FreeBSD: head/sys/dev/mn/if_mn.c 254263 2013-08-12 23:30:01Z scottl $"); |
27 28/* 29 * Stuff to describe the MUNIC32X and FALC54 chips. 30 */ 31 32#define M32_CHAN 32 /* We have 32 channels */ 33#define M32_TS 32 /* We have 32 timeslots */ 34 --- 1306 unchanged lines hidden (view full) --- 1341 error = bus_setup_intr(self, sc->irq, INTR_TYPE_NET, NULL, mn_intr, sc, &sc->intrhand); 1342 1343 if (error) { 1344 printf("couldn't set up irq\n"); 1345 free(sc, M_MN); 1346 return(ENXIO); 1347 } 1348 | 27 28/* 29 * Stuff to describe the MUNIC32X and FALC54 chips. 30 */ 31 32#define M32_CHAN 32 /* We have 32 channels */ 33#define M32_TS 32 /* We have 32 timeslots */ 34 --- 1306 unchanged lines hidden (view full) --- 1341 error = bus_setup_intr(self, sc->irq, INTR_TYPE_NET, NULL, mn_intr, sc, &sc->intrhand); 1342 1343 if (error) { 1344 printf("couldn't set up irq\n"); 1345 free(sc, M_MN); 1346 return(ENXIO); 1347 } 1348 |
1349 u = pci_read_config(self, PCIR_COMMAND, 1); | 1349 u = pci_read_config(self, PCIR_COMMAND, 2); |
1350 printf("%x\n", u); | 1350 printf("%x\n", u); |
1351 pci_write_config(self, PCIR_COMMAND, u | PCIM_CMD_PERRESPEN | PCIM_CMD_BUSMASTEREN | PCIM_CMD_MEMEN, 1); | 1351 pci_write_config(self, PCIR_COMMAND, u | PCIM_CMD_PERRESPEN | PCIM_CMD_BUSMASTEREN, 2); |
1352#if 0 1353 pci_write_config(self, PCIR_COMMAND, 0x02800046, 4); 1354#endif 1355 u = pci_read_config(self, PCIR_COMMAND, 1); 1356 printf("%x\n", u); 1357 1358 ver = pci_get_revid(self); 1359 --- 73 unchanged lines hidden --- | 1352#if 0 1353 pci_write_config(self, PCIR_COMMAND, 0x02800046, 4); 1354#endif 1355 u = pci_read_config(self, PCIR_COMMAND, 1); 1356 printf("%x\n", u); 1357 1358 ver = pci_get_revid(self); 1359 --- 73 unchanged lines hidden --- |