mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2004-04-09 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 607/networking * network/dec21140.c: Made PCI configuration minimum sane instead of fully specifying unused PCI features.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2004-04-09 Greg Menke <gregory.menke@gsfc.nasa.gov>
|
||||||
|
|
||||||
|
PR 607/networking
|
||||||
|
* network/dec21140.c: Made PCI configuration minimum sane instead
|
||||||
|
of fully specifying unused PCI features.
|
||||||
|
|
||||||
2004-05-21 Till Strauman <strauman@slac.stanford.edu>
|
2004-05-21 Till Strauman <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
PR 625/networking
|
PR 625/networking
|
||||||
|
|||||||
@@ -1173,8 +1173,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
|
|||||||
PCI_BASE_ADDRESS_1,
|
PCI_BASE_ADDRESS_1,
|
||||||
&lvalue);
|
&lvalue);
|
||||||
|
|
||||||
tmp = (unsigned int)(lvalue & (unsigned int)(~MEM_MASK))
|
tmp = (unsigned int)(lvalue & (unsigned int)(~MEM_MASK)) + (unsigned int)PCI_MEM_BASE;
|
||||||
+ (unsigned int)PCI_MEM_BASE;
|
|
||||||
|
|
||||||
sc->base = (unsigned int *)(tmp);
|
sc->base = (unsigned int *)(tmp);
|
||||||
|
|
||||||
@@ -1193,11 +1192,9 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
|
|||||||
#if defined(__PPC)
|
#if defined(__PPC)
|
||||||
pci_write_config_word(pbus, pdev, pfun,
|
pci_write_config_word(pbus, pdev, pfun,
|
||||||
PCI_COMMAND,
|
PCI_COMMAND,
|
||||||
(unsigned16) ( PCI_COMMAND_MEMORY |
|
(unsigned16) ( PCI_COMMAND_IO |
|
||||||
PCI_COMMAND_MASTER |
|
PCI_COMMAND_MEMORY |
|
||||||
PCI_COMMAND_INVALIDATE |
|
PCI_COMMAND_MASTER ) );
|
||||||
PCI_COMMAND_WAIT |
|
|
||||||
PCI_COMMAND_FAST_BACK ) );
|
|
||||||
#endif
|
#endif
|
||||||
#if defined(__i386__)
|
#if defined(__i386__)
|
||||||
pcib_conf_write16(signature, 0x04, ( 0x2 | 0x4 | 0x10 | 0x80 | 0x200) );
|
pcib_conf_write16(signature, 0x04, ( 0x2 | 0x4 | 0x10 | 0x80 | 0x200) );
|
||||||
|
|||||||
Reference in New Issue
Block a user