Commit Graph

6852 Commits

Author SHA1 Message Date
tsutsui
ac9c3b9cb0 Use device_t self arg to get a device name rather than through &ahd->sc_dev
which needs to be changed on future device_t/softc split.
2009-09-05 12:59:24 +00:00
tsutsui
4695cf33e5 Wrap long lines. 2009-09-05 12:55:05 +00:00
sborrill
75ad4101f2 SiS 7012 uses different multichannel control bits compared to other codecs
(data from linux via OpenBSD).
2009-09-03 14:29:42 +00:00
tsutsui
1de7f11179 Move pmf(9) calls to MI re_attach() and re_detach() from each backend. 2009-09-02 15:11:13 +00:00
tsutsui
1056cb0520 Call pmf_device_register(9) in ahc_attahc() rather than ahc_pci_attach()
since pmf_device_deregister(9) is called from ahc_detach() so that
cardbus backend also gets proper pmf(9) calls.
PCI backend is tested on on O2, but cardbus is untested.
2009-09-02 11:10:37 +00:00
jmcneill
f6062bf27a aprint-ify 2009-09-01 21:46:52 +00:00
tsutsui
c92a50c211 Remove unnecessary #includes. 2009-08-29 14:18:34 +00:00
tsutsui
3ffa711088 Add support for Oxford Semiconductor OXmPCI952 2 port UARTs.
Also update URL of Oxford UART chips.
2009-08-29 13:55:29 +00:00
jmcneill
1338e788ee Move softc definition to genfb_pcivar.h 2009-08-24 11:32:49 +00:00
jmcneill
8aa0a1bfb1 Expose genfb_restore_palette and allow MD code to specify PMF callbacks. 2009-08-24 11:03:44 +00:00
jmcneill
5198b6e109 Register NULL pmf handlers, and note that firmware & MD code is responsible
for restoring the display device.
2009-08-24 02:10:41 +00:00
jmcneill
f21840f04b s/Advanced Micro Devices/AMD/ for device descriptions. 2009-08-23 16:21:55 +00:00
jmcneill
f66db5549f Print device description on the same line as locators. 2009-08-23 16:21:36 +00:00
jmcneill
5c5d9b7cd9 Don't maintain a list of descriptions for each supported device, that's
what PCIVERBOSE is for; use pci_devinfo instead.
2009-08-23 16:11:48 +00:00
macallan
eccd210ff3 use vcons_replay_msgbuf() when appropriate 2009-08-20 02:40:57 +00:00
dyoung
933f8ac715 Since the intention in capturing a device's PCI Configuration Space
in pci_probe_device() is for pcidevdetached() to restore the device's
original PCI Configuration Space after it is detached, let's capture
a device's PCI configuration before attaching a driver to it instead
of after.  Capturing the configuration after attaching is too late,
because a driver such as ath(4) may put a device to sleep promptly
after attaching it, and putting a PCI device to sleep often entails
changing PCI configuration from defaults.
2009-08-19 21:36:47 +00:00
pgoyette
96961f175f Use __arraycount() for readability 2009-08-19 16:31:28 +00:00
jmcneill
a3abcdbc25 Adapt for NACPI -> NACPICA change. 2009-08-18 20:46:10 +00:00
drochner
c8bb344c69 put some strange text within an "#if 0"'d section into a comment
additionally to appease picky parsers
2009-08-18 11:15:43 +00:00
drochner
c3b5cc8150 comparision with a string literal by "==" can't work (found by gcc-4.4.1),
replace with strcmp()
2009-08-18 11:12:05 +00:00
cegger
d708daccf1 fix multicast. 2009-08-18 06:02:36 +00:00
cegger
f68c98340e don't read/write 1000baseT specific MII registers on 10/100M only device.
from OpenBSD.
2009-08-18 05:50:55 +00:00
jakllsch
1788ee813d A few new PCI register #defines:
- size of config and extended config space
 - EFI ROM code type number
 - extended capability list register bits
2009-08-17 14:11:09 +00:00
macallan
5f495e4be4 add voyagerfb, a driver for the Gdium Liberty 1000's onboard graphics chip 2009-08-12 19:28:00 +00:00
matt
4e26dd8d9d If we've had to enable MEM access, make sure our flags reflect that so that
pci_mapreg_map won't fail because it didn't know we did it.
2009-08-08 20:44:36 +00:00
blymn
2a02a6feb9 Destroy mutex and condvar initialised in pccbbattach(). 2009-08-07 12:09:50 +00:00
blymn
c6b1721d19 Clean up extraneous white space. 2009-08-07 12:04:43 +00:00
msaitoh
9b3aa25fe3 If the difference bettween last flag and new flag is only IFF_PROMISC or
IFF_ALLMULTI, set multicast filter only to prevent link down. Tested by
Mark Davies and me. Fixes PR#29126 for wm.
2009-08-06 03:03:46 +00:00
cegger
ab159a84fa make RX hw checksum available by default.
TX hw checksum locks up interface.
2009-08-05 15:29:51 +00:00
cegger
3b3738c161 fix typo 2009-08-05 14:41:12 +00:00
cegger
6d027845ab - Don't access VPD even if hardware advertised the capability.
It seems that some revisions of the controllers hang while accessing
  the VPD. Because VPD access routine is now unused, nuke it.
- Let TWSI reload EEPROM if VPD capability is detected. Reloading
  the EEPROM will also set the Ethernet address, so age(4) now reads
  AGE_PAR0 and AGE_PAR1 register to get the Ethernet address. This removes
  removes a lot of hacks and enhance readability a lot.
- Double PHY reset timeout as it takes more time to take the PHY out of
  power-saving state.
- Explicitly check power-saving state by checking undocumented PHY
  registers. If link is not up, poke undocumented registers to take
  PHY out of power-saving state. This is the same thing done by the
  Linux driver.
- Don't rely on auto-clearing feature of master reset bit, just wait
  1ms and check idle status of MAC.

From FreeBSD via OpenBSD.
2009-08-05 12:07:16 +00:00
cegger
b297f62c5a support flow control. from OpenBSD.
tested by Kevin Lahey
2009-08-05 07:03:04 +00:00
cegger
32258d719a support flow control. from OpenBSD.
tested by hans@
2009-08-04 13:17:55 +00:00
taca
a86c093e69 Fix a bug of BGE_RDMA_MODE_FIFO_LONG_BURST definition.
Confirmed by msaito@.
2009-08-04 08:49:02 +00:00
gavan
14e9ee53d1 If we're going to complain about exceeding the PCI bandwidth, we may as
well say how much we think we're using.
2009-08-02 11:25:50 +00:00
matt
3dd4772b5a Regen. 2009-08-01 21:40:10 +00:00
matt
7a420cdb70 Add Silicon Motion SM502 2009-08-01 21:34:21 +00:00
bouyer
7693ded053 Disable completely bogus DIAGNOSTIC check. 2009-07-31 20:47:25 +00:00
macallan
4865392ba6 do as elad suggested and call kauth instead of using INSECURE in pcimmap() 2009-07-30 04:38:24 +00:00
msaitoh
0a482c2c7c Fix the bug that another lock mechanism is used to access Kumeran registers
on i80003 and ICHs.

Fix yet another i80003 ONLY workaround. The code to modifing TIPG register
is only for i80003.

Set the Re-Transmit on Late Collision(RTLC) flag for all devices.

Fix a typo in a printf message.
2009-07-30 03:46:48 +00:00
cegger
bba07db346 add TWSI registers. from OpenBSD. 2009-07-28 21:03:46 +00:00
cegger
40e186cdb8 print chipset name. From OpenBSD. 2009-07-28 06:02:34 +00:00
macallan
b8fa6b1208 forgot to commit that along with radeonfb.c 2009-07-28 00:10:51 +00:00
dyoung
1b6947b941 Do a complete device_t/softc split for the PCI attachment. I have
not finished the device_t/softc split for the SBus attachment
because I don't have an SBus gem(4) to test with.

Convert from legacy shutdownhooks to a PMF shutdown hook.  Add PMF
suspend/resume handlers.

Factor a detachment hook out of gem_attach().  During device
attachment, track which resources are reserved in sc_attach_state,
and release only those resources during detachment.

Tested on gem0 and gem1 at pci1 on a Sun Fire V120.
2009-07-27 18:10:53 +00:00
kiyohara
d9973100d4 Support Marvell Hercules-I/II SATA Controllers. 2009-07-27 15:09:58 +00:00
kiyohara
ce1343fcd9 Support Marvell Hercules-I/II SATA Controllers. 2009-07-27 12:34:12 +00:00
msaitoh
df316185c6 Call prop_dictionary_set_uint32() before mii_attach(), so that brgphy
can do prop_dictionary_get_uint32() correctly.
2009-07-25 13:52:47 +00:00
dyoung
487ea78a9c Use kpause(9), cv_timedwait(9), and cv_signal(9) instead of tsleep(9)
and wakeup(9).

Use mstohz(9).

XXX Protection against spurious wakeups is still needed, but this patch
XXX makes the code no worse than before in this regard.
2009-07-23 21:22:25 +00:00
macallan
680ff5c320 quick hack to allow brightness control via PMF 2009-07-23 07:21:45 +00:00
msaitoh
256f34e7cc Reduce the difference against FreeBSD and OpenBSD
Define BGE_IS_JUMBO_CAPABLE and use it. No functional change.

  Cleanup the code for BGE_PCI_DMA_RW_CTL regster setting. No functional
  change.

  Fix a printf message.
2009-07-23 05:05:13 +00:00
jakllsch
4bdc2d7f77 Correctly bus_dmamap_sync() the transmit descriptors.
Previously the sync could run off the end and not sync
the beginning of the ring.  Logic gleaned from if_nfe.
2009-07-16 20:14:17 +00:00
dyoung
bbc238f2cd Let us detach & re-attach children of mfi0. Detach mfi0 at shutdown.
Detachment may fail after freeing some but not all resources, so
take care not to re-release any resource during detachment.

Tested on a Dell PowerEdge 1950.
2009-07-16 18:58:38 +00:00
dyoung
ebab3c38ca device_t/softc split. Tested and shown to work on a Dell PowerEdge
1950.
2009-07-16 18:10:00 +00:00
dyoung
78500bdfd5 Add a rudimentary detachment hook for mfi(4). 2009-07-16 01:01:46 +00:00
macallan
e06eca8326 nuke PCI_ALLOW_MMAP, instead allow mmap(/dev/pci*) with options INSECURE
now the x86 camp should be happy again
2009-07-14 19:54:40 +00:00
msaitoh
37cdac2fa8 Some fixes for i80003 and ICH{8,9,10} from e1000 driver and document:
Add setting for KABGTXD register for ICH{8,9,10}.

    ICH9 and ICH10 has no FCAL, FCAH and FCT like ICH8.

    Add special setting for FCTTV and TCTL_EXT register for i80003

    The special setting for TIPG is only for i80003.

    Some of kumeran settings are only for i80003's bugs.

    Add some ICH10 fixes.
2009-07-14 00:00:44 +00:00
msaitoh
234fc6cd53 Check PCI-X mode as e1000 driver. 2009-07-13 23:31:19 +00:00
macallan
ec8b80662c enable mmap() support for /dev/pci* with options PCI_ALLOW_MMAP 2009-07-09 19:22:21 +00:00
christos
e09097a0e7 simplify previous. 2009-07-07 17:08:19 +00:00
cegger
484dd68fe4 regen. 2009-07-07 09:46:25 +00:00
cegger
a240b4e5e6 correct product ids for RD890 chipset 2009-07-07 09:45:45 +00:00
cegger
598e09136a pciioctl(), pci_devioctl():
simplify implementations of PCI_IOC_BDF_CFGREAD, PCI_IOC_BDF_CFGWRITE,
PCI_IOC_CFGREAD, PCI_IOC_CFGWRITE
No functional changes.
2009-07-04 21:20:56 +00:00
cegger
9b1a101d50 remove useless parenthesis 2009-07-04 21:01:10 +00:00
jakllsch
464a6f95bf Remove unused elements from siisata_softc.
Clean up siisata pci attachment.
 noteable changes:
 - Use aprint_*_dev where appropriate.
 - Condense board match table and use C99 initializers.
 - Use aprint_verbose for extra info.

Also, add 2009 to my copyright, as well as remove my local CVS tags.
2009-07-04 20:36:57 +00:00
hubertf
9bb62260eb Use PCI IDs from pcidevs, instead of storing them in here.
Compile tested and OK'd by NONAKA Kimihiro.
2009-06-29 11:05:12 +00:00
hubertf
ea499356a8 regen 2009-06-29 11:04:05 +00:00
hubertf
51bb588c5a add a few sdhc(4) devices 2009-06-29 11:02:43 +00:00
dyoung
7145e9fc73 A lot of good it does, but let this build with 'no options INET'. 2009-06-26 00:24:18 +00:00
mjacob
ad7d727f78 Update ISP driver to latest and greatest. Includes support for the 8Gb part. 2009-06-25 23:44:01 +00:00
mrg
f8e80dd3fa remove the old drm sources. 2009-06-21 20:15:47 +00:00
mrg
c7c2933c33 make external drm the default. 2009-06-21 20:15:26 +00:00
mrg
8df00d72b3 add r600_cp.c. 2009-06-19 03:53:24 +00:00
jakllsch
f38e8286ac A few changes for siisata(4):
- Support detachment.  From KIYOHARA Takashi.
 - Add PCI detachment functionality (albeit not very interesting when
   the bus can not yet be rescanned).
 - Rework interrupt handlers to reduce near-duplicate code.
   Borrowed from ahcisata(4).
 - Attempt to make polled I/O work. Untested.
 - Fix formatting of some messages.
 - For always-polled commands, disable interrupt
   at slot level rather than port level.
 - Instead of busy-waiting indefinitely for completion of some commands
   move on after 31 seconds. Use cv_timedwait(9) instead of DELAY(9).
 - Use abstracted SATA FIS code.
 - Enable use of disks that don't respond with the standard signature.
2009-06-17 04:37:57 +00:00
cegger
7ed6826c06 Apply hw workaround required for all SB600 revisions and SB700 revisions
A12 and A13 to avoid USB subsystem hang symptom. The USB subsystem hang
symptom is observed when the system has multiple USB devices connected to it
or one USB device is often re-connected. In some cases a USB hub may be
required to observe this symptom.

This patch works around the problem by correcting the internal register setting
that will help by changing the behavior of the internal logic to avoid the
USB subsystem hang issue. The change in the behavior of the logic does not
impact the normal operation of the USB subsystem.

This fix has been discussed, developped, reviewed, polished up
and tested on current-users by several people. Thread starts at:
http://mail-index.netbsd.org/current-users/2009/05/17/msg009460.html
2009-06-15 09:18:45 +00:00
cegger
051c4248a9 use __arraycount 2009-06-14 06:24:14 +00:00
rjs
dc974f0b47 Regen. 2009-06-12 23:05:34 +00:00
rjs
416c60b3b1 Add some more Marvell devices. 2009-06-12 23:00:24 +00:00
cegger
acf99ccda1 use __arraycount(). Same object code generated. 2009-06-12 08:33:41 +00:00
cegger
eb7545174c regen. 2009-06-11 12:43:13 +00:00
cegger
db97db6aee add ADP2, Marvell and Triones devices.
Taken from mvsata diff from Kiyohara Takashi, resolved apply conflicts.
2009-06-11 12:42:31 +00:00
cegger
535480ccf0 Attach Marvel 88SE6121 SATA II controller on ahci.
W/o this, it attaches on pciide.
2009-06-11 11:02:11 +00:00
tsutsui
95b2850b42 Split device_t/softc.
Tested on:
emuxki0 at pci2 dev 7 function 0: Creative Labs SBLive! EMU 10000
(audio multimedia, revision 0x05)
2009-06-09 11:01:18 +00:00
cegger
a4c2d5ee50 typo in comment: autconfiguration -> autoconfiguration 2009-06-06 12:56:43 +00:00
skrll
d73b19cf48 Regen. 2009-05-29 06:13:56 +00:00
skrll
2026f95019 Add a bunch of HP stuff. From OpenBSD. 2009-05-29 06:12:31 +00:00
darran
7dadeaa0c7 Add vlan support and hardware offload capabilities to agr.
These changes allow vlans to be layered above agr, with the attach
and detach propogated to the member ports in the aggregation.
Note the agr interface must be up before the vlan is attached.

Adds SIOCINITIFADDR support to the wm driver for setting the AF_LINK
address, necessary for agr to be able to set the mac addresses of each
port to the agr address (i.e. so it can receive all intended traffic
at the hardware level).

Adds support for disabling the LACP protocol by setting LINK1 on the agr
interface (e.g. ifconfig agr0 link1).

In consultation with tls@.
2009-05-29 04:57:04 +00:00
dyoung
a0d0f249f9 Let us detach pcmcia0 and cardbus0 at cardslot0, and cardslot0 at
cardbus0.
2009-05-21 17:32:32 +00:00
skrll
58cfbf9fac Regen 2009-05-18 09:06:54 +00:00
skrll
f9f90e394b Add more devices in my c3700. 2009-05-18 09:06:22 +00:00
he
df7cd4eea6 Complete the device_t / softc split by changing the sc_dev member
from "struct device" to "device_t".  Commit overlooked when tga.c was
changed?
2009-05-18 00:14:27 +00:00
tsutsui
cb5bffc5fa Split device_t/softc. Tested on D-Link DL-4000. 2009-05-17 02:08:35 +00:00
tsutsui
f84df6daef u_intNN_t -> uintNN_t 2009-05-17 01:33:24 +00:00
tsutsui
e298c1144d Split device_t/softc.
Tested PCI HME on i386.  Sbus HME is compile test only.
2009-05-17 00:40:43 +00:00
tsutsui
87e79748d0 KNF and misc cosmetics. 2009-05-16 14:27:30 +00:00
tsutsui
844c127c73 Split device_t/softc. Tested on arc:
tga0 at pci0 dev 3 function 0: DC21030 step C, board type T8-02
2009-05-16 13:04:26 +00:00
tsutsui
d8c545cc8c Split device_t/softc split, tested on VT6212L. 2009-05-16 07:34:05 +00:00
tsutsui
49d9fc80f4 Misc cleanup:
- some KNF
- u_intNN_t -> uintNN_t
- wrap long lines and fix indent
- remove return statements at the end of void functions
- use __arraycount()

XXX: many inconsistent aprint_error_dev(9) vs printf(9)
2009-05-16 03:57:57 +00:00
tsutsui
31ec75e9f1 Split device_t/softc.
No crash on:
esiop0 at pci0 dev 11 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop0 at pci0 dev 9 function 0: Symbios Logic 53c810a (fast scsi)
siop0 at gsc0 hpa 0xf0830000 path 2/0/7 irq 3 ipl 6: NCR53C720 rev 2
2009-05-15 17:55:44 +00:00
cegger
76480e5237 regen. 2009-05-13 14:49:57 +00:00
cegger
eb3bf0c3e4 add RX780/RX790 chipset host bridge and Radeon X1600 2009-05-13 14:49:20 +00:00
cegger
b8169823d2 use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.
2009-05-12 08:22:59 +00:00
cegger
2dc0e43978 use device_xname() 2009-05-11 20:53:47 +00:00
sborrill
9ea64db0b6 regen 2009-05-09 15:16:42 +00:00
sborrill
2336481d62 Add alternative product ID for VIA VT8237A Integrated SATA Controller 2009-05-09 15:15:50 +00:00
pgoyette
7450d74baf For multi-byte transfers, the bytes need to be written to or read from
consecutive data registers.  Discovered while debugging sdtemp(4) driver
which does _only_ 16-bit transfers!
2009-05-09 07:13:57 +00:00
pgoyette
bbb7ea8f3e You can't use a BYTE protocol to read 16-bits worth of data from the
i2c bus.  Discovered while debugging my sdtemp(4) driver.
2009-05-09 04:56:39 +00:00
cegger
6ee74bfd56 struct device * -> device_t, no functional changes intended. 2009-05-07 08:03:23 +00:00
cegger
602c27254b use device_private() 2009-05-07 07:56:03 +00:00
cegger
930db79c5b struct device * -> device_t, no functional changes intended. 2009-05-07 07:33:05 +00:00
cegger
73144fe522 device_t/softc split
patch presented on tech-kern@, no comments on it
2009-05-07 06:08:02 +00:00
elad
105d9a093d Replace curlwp->l_cred with kauth_cred_get().
Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/05/05/msg005038.html
2009-05-06 18:41:54 +00:00
cegger
af1172fad0 device_t/softc split
tested by jakllsch@
2009-05-06 18:25:28 +00:00
cegger
a591bc88dd struct device * -> device_t, no functional changes intended. 2009-05-06 10:34:32 +00:00
cegger
6b9f9b8644 use device_private() 2009-05-06 09:32:52 +00:00
cegger
59717d7121 struct cfdata * -> cfdata_t, no functional changes intended. 2009-05-06 09:25:14 +00:00
mrg
a35a651446 you can now easily select trying external drm with "options DRM_EXTERNAL". 2009-05-06 01:33:24 +00:00
cegger
52b1d2aee7 struct cfdata * -> cfdata_t 2009-05-05 21:47:49 +00:00
dyoung
e470d88889 Change struct cfdata * to cfdata_t. No functional change intended. 2009-05-05 21:34:13 +00:00
cegger
4474fa75b2 device_t/softc split
tested by and ok dyoung@
2009-05-05 21:33:21 +00:00
msaitoh
b25f90b108 Doesn't print error message only when the register is BGE_SRS_MODE.
It occurs on some environment (and once after boot?). Other *BSDs and
Linux don't print the error message for all registers.
2009-05-05 18:08:28 +00:00
cegger
73af259591 Attach on BCM5709 chip.
XXX Firmware fails to complete initialization on this chip.
2009-05-05 10:21:22 +00:00
cegger
dc97f7f624 print autoconf error message with aprint_error 2009-05-05 10:02:52 +00:00
cegger
6a970ea21d device_t/softc split 2009-05-05 09:51:23 +00:00
markd
a44286a718 Treat G4X like I915 and G33 for MSAC. Fixes aperture setting.
Has been working successfully for me and snj for the last few months.
2009-05-04 11:05:45 +00:00
dyoung
85d5fd7b83 In pccbb_pci_callback(), set CBB_SPECMAPPED in sc_flags if we've
acquired bus space from bus_space_alloc(9) or from rbus_space_alloc(),
so that we use the appropriate routine to release the bus space in
pccbbdetach().  This stops panics during cbb(4) detachment (esp. at
shutdown) on some systems.

Thanks to Kurt Schreiner for testing the fix, Kurt, Patrick Welche,
Pouya D. Tafti, and Matt Green for reporting.
2009-05-03 00:31:12 +00:00
skrll
51d0553d6a Regen (again) 2009-04-30 15:14:49 +00:00
skrll
6cc4b39756 Add another NS product found in hppa machines. 2009-04-30 15:13:58 +00:00
skrll
9763c0c6d8 Regen. 2009-04-30 15:07:44 +00:00
skrll
c026dcb4aa Add the National Semiconductor PC87560 Legacy IO chip on systems with
PA-8500 and later 64-bit CPUs.
2009-04-30 15:03:30 +00:00
dyoung
d446e68bf2 Use device_t, cfdata_t, and device_private(). 2009-04-28 22:43:50 +00:00
ginsbach
6be6867d6d Regen for Mellanox additions. 2009-04-28 14:32:43 +00:00
ginsbach
ea30fa5024 Add Mellanox Technologies Infiniband devices. 2009-04-28 14:27:16 +00:00
cegger
a4aa7dace4 on detach, deregister from pmf 2009-04-28 11:49:15 +00:00
cegger
9bb7df81f0 on detach, deregister from pmf and free resource 2009-04-28 11:47:56 +00:00
cegger
2cae64a195 check error code from bwi_attach() 2009-04-26 10:45:19 +00:00
cegger
394d81abd5 fix error handling 2009-04-26 10:26:54 +00:00
cegger
57fb22a89c device_t/softc split 2009-04-26 10:07:48 +00:00
cegger
c6c48498e2 prepare device_t/softc split 2009-04-26 09:56:46 +00:00
cegger
32e56df1e0 u_intNN_t -> uintNN_t 2009-04-26 09:47:31 +00:00
cegger
60326e09a5 - Fix error handling in attachment
- use aprint_*_dev
2009-04-26 09:12:33 +00:00
cegger
1ab9e723df detach ohci on shutdown 2009-04-26 08:54:13 +00:00
cegger
c398d65d42 Fix error handling. 2009-04-26 08:46:10 +00:00
cegger
c1bf5ecbc4 age_intr: don't return w/o ack. the interrupt.
Add a comment when this special case can happen.
2009-04-26 07:01:29 +00:00
cegger
f8c09ed139 fix error handling in lii_attach()
ok jmcneill@
2009-04-26 06:56:46 +00:00
pgoyette
5dd6c0425b When drm is compiled in only for PCI devices, agp_flush_cache() is not
defined.  Wrap the call to it with #ifndef DRM_NO_AGP to avoid link
errors.
2009-04-26 02:23:26 +00:00
tsutsui
76e4602ef6 Add RCS Id. 2009-04-25 17:04:40 +00:00
tsutsui
be608a6ecc Regen from pcidevs rev 1.983:
> Tweak some Realtek re(4) device names.
2009-04-25 15:30:17 +00:00
tsutsui
0ea749c026 Tweak some Realtek re(4) device names. 2009-04-25 15:29:18 +00:00
tsutsui
90c44cfe77 Remove suffix "B" from rtk_name of PCI_PRODUCT_REALTEK_RT8168 devices.
All 8168/8111 variants (8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP)
have the same PCI device ID.
2009-04-25 06:16:12 +00:00
kefren
02190332dd Add power hooks. Proposed a couple of days ago on tech-kern@, no
objections received. Tested on Dell Inspiron 2200 with BCM4318
2009-04-23 20:24:23 +00:00
msaitoh
e447a613d9 use proplib 2009-04-23 10:47:43 +00:00
msaitoh
278d80cb78 remove obsolete code. 2009-04-23 10:43:31 +00:00
kefren
62e6076ccd Add pmf hooks. Proposed two days ago on tech-kern@, no objections.
Tested on amd64 with Asus P5Q-E mainboard with onboard Yukon Lite
2009-04-23 09:18:25 +00:00
tsutsui
34ef135b8c Fix wrong arguments of bus_dmamem_free(9).
XXX: not all resouces are freed properly on error path in age_dma_alloc().
2009-04-21 13:16:36 +00:00
nonaka
e0297d1ead Added SD/MMC support from OpenBSD.
tested on i386, amd64 at current-users ML by pgoyette@.
tested on zaurus by myself.
2009-04-21 03:00:29 +00:00
cegger
85620a64b2 Add ale(4), a driver for Attansic/Atheros L1E gigabit ethernet device.
Ported by me from OpenBSD, improvements from Kevin Lahey,
successfully tested by Kevin Lahey and Stephen Borrill.
2009-04-20 20:10:23 +00:00
msaitoh
4d9e9f6912 Some fixes and enhancements:
Both if_bge* and brgphy.[ch]:
    Check the parent's MAC and use the quirk code for the bug like OpenBSD and
    FreeBSD. Some bugs can't identify the PHY ID. For example, 5704 Ax has the
    ADC bug, but 5704 A3 and 5704 B0 have the same PHY ID and revision. Add
    BGE_PHY_CRC_BUG, BGE_PHY_ADC_BUG, BGE_PHY_5704_A0_BUG, BGE_PHY_JITTER_BUG,
    BGE_PHY_ADJUST_TRIM and BGE_PHY_BER_BUG for this flag. Some of the DSP
    patches are newly taken from OpenBSD and FreeBSD.

  if_bge*:
    Remove duplicated BGE_CHIPID_BCM5714_A0 entry in the known CHIPID table.
    Fix obsolete comments.

  brgphy.[ch]:
    Add some PHY IDs.

TODO:
  Add more three quirk code into bge and brgphy (the brgphy side's are
  currently #if0'ed).
  Add support for bnx into brgphy (currently #if0'ed)
2009-04-19 11:10:36 +00:00
tsutsui
d779b85d3e Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch
2009-04-18 14:58:02 +00:00
dyoung
2e016b467d Bug fix: don't release the Rx DMA maps twice. 2009-04-17 23:23:23 +00:00
christos
dbbba1ac10 appease gcc 2009-04-17 20:32:27 +00:00
dyoung
a3a7e82760 Use device_t instead of 'struct device *' or device_ptr_t. Use cfdata_t
instead of 'struct cfdata *'. Delete some gratuitous parentheses.
2009-04-17 19:44:13 +00:00
cegger
7844441cd2 backout rev. 1.112. I was misleaded by the wrong pci(9) manpage. 2009-04-17 19:04:20 +00:00
cegger
7bd8016175 pci_activate() wants a softc and not a device 2009-04-17 18:43:53 +00:00
dyoung
40bf52a73b Disable interrupts on the h/w before disestablishing the PCI interrupt
handler.
2009-04-17 17:31:01 +00:00
dyoung
d792f4788e Disable interrupts on the h/w before detaching the interrupt
handler.  Protects against the problem described in
<http://mail-index.netbsd.org/port-i386/2009/04/10/msg001317.html>,
Xintr_ioapic_levelN jumps to 0 during shutdown.
2009-04-17 17:21:31 +00:00
cegger
adee6ed051 check return code of tlp_attach() 2009-04-17 16:57:37 +00:00
tsutsui
25e0185c3d Check revisions and print names of i82551/i82551ER, per Intel manual. 2009-04-17 15:37:43 +00:00
cegger
bb95b8c8db Free resources in error path.
While here, fix copy&paste error I introduced in rev. 1.108.
2009-04-17 14:07:32 +00:00
cegger
65e67e65cc use aprint_* 2009-04-17 13:15:53 +00:00
cegger
f52d4b8ffb Detach tlp(4) during shutdown.
Free unused resources on attachment.
2009-04-17 12:59:19 +00:00
cegger
c455042514 device_t/softc split. Tested with tlp at pci 2009-04-17 10:20:32 +00:00
tsutsui
859579fb10 There is a report that 82559ER doesn't have RX hardware checksum support
(even though it has a newer revision number than 82559_A0),
so handle it separately per its own PCI device ID.
2009-04-16 12:41:51 +00:00
msaitoh
8dc86612ab Take some code from FreeBSD and OpenBSD:
Fix some bugs that the driver unable to detect link loss (OpenBSD 1.135,
  FreeBSD 1.102)

  bge_tick(): fix some extra input error (OpenBSD 1.221 FreeBSD 1.212)

  Acknowledge link change interrupts by setting the 'link changed' bit
  in the status register (used to have no effect). FreeBSD 1.44 (OpenBSD 1.21)

  Add some fiber support (OpenBSD 1.220)

  Set BGE_MISCCFG_KEEP_GPHY_POWER as {Open,Free}BSD and linux.

  Add special case code to fix a problem with the BCM5704 in TBI mode
  (FreeBSD rev. 1.71, OpenBSD rev. 1.35)

  Force an interrupt in bge_ifmedia_upd (FreeBSD rev. 1.205, OpenBSD rev.
  1.242)

  Add missing workaround for 5705 (FreeBSD rev. 1.44, OpenBSD rev. 1.21)

  Add some known CHIPID entries.
2009-04-16 01:38:34 +00:00
msaitoh
e8e69d0b8b Fix the case of setting a flag in BGE_PCI_DMA_RW_CTL (on conventional PCI)
again.
2009-04-16 01:35:24 +00:00
dyoung
773ba4e409 Delete two unused data members, the powerhook and the shutdownhook
handles.
2009-04-14 20:17:15 +00:00
msaitoh
eb993d20f8 Reload sc_ctrl in wm_reset().
Add an ICH10 entry.

Remove some obsolete comments.
2009-04-07 18:42:30 +00:00
msaitoh
e1c695ebf8 regen 2009-04-07 18:41:06 +00:00
msaitoh
0712fe9fe0 add 82801J_D_BM_LF (ICH10) 2009-04-07 18:40:39 +00:00
dyoung
b429c26fd3 Detach ehci(4) and uhci(4) at shutdown. 2009-04-07 18:25:26 +00:00
msaitoh
c52bc69c89 Fix about TBI mode. This fix doesn't influence MII mode.
- Fix SWDPIN(1)'s polarity on some chips.
 - Fix flow control stuff (includes PR#32009).
 - Stop RXCFG storm. It ocours easily.
 - And more fix about autonego.

Tested on PRO/1000F, PRO/1000XF and PRO/1000 MF.
2009-04-07 18:23:37 +00:00
msaitoh
0855c70d27 Fix about TBI mode. This fix doesn't influence MII mode.
- Fix panic in mediachange.
 - Fix SWDPIN(1)'s polarity on some chips.
 - Fix flow control stuff (includes PR#32009).
 - Stop RXCFG storm. It ocours easily.
 - And more fix about autonego.

Tested on PRO/1000F, PRO/1000XF and PRO/1000 MF.
2009-04-07 18:23:36 +00:00
dyoung
f26cbc49c7 Destroy sc->bnx_timeout in bnx_detach(). 2009-04-07 18:07:10 +00:00
stacktic
ea41759011 Add Realtek ALC663 and treat like ALC662 (ok pooka@) 2009-04-07 14:47:53 +00:00
dyoung
8f20e30696 Fix SIOCSIFFLAGS. Mark as safe to detach at shutdown. 2009-04-03 00:14:42 +00:00
dyoung
30156f20e6 Cosmetic changes, only, to clarify and to save a couple of lines: return
a constant, 0, instead of returning ret when it is always 0.  Wait to
initialize ret until we really need to.
2009-04-02 01:06:49 +00:00
dyoung
0d1ba3e899 During shutdown, detach devices in an orderly fashion.
Call the detach routine for every device in the device tree, starting
with the leaves and moving toward the root, expecting that each
(pseudo-)device driver will use the opportunity to gracefully commit
outstandings transactions to the underlying (pseudo-)device and to
relinquish control of the hardware to the system BIOS.

Detaching devices is not suitable for every shutdown: in an emergency,
or if the system state is inconsistent, we should resort to a fast,
simple shutdown that uses only the pmf(9) shutdown hooks and the
(deprecated) shutdownhooks.  For now, if the flag RB_NOSYNC is set in
boothowto, opt for the fast, simple shutdown.

Add a device flag, DVF_DETACH_SHUTDOWN, that indicates by its presence
that it is safe to detach a device during shutdown.  Introduce macros
CFATTACH_DECL3() and CFATTACH_DECL3_NEW() for creating autoconf
attachments with default device flags.  Add DVF_DETACH_SHUTDOWN
to configuration attachments for atabus(4), atw(4) at cardbus(4),
cardbus(4), cardslot(4), com(4) at isa(4), elanpar(4), elanpex(4),
elansc(4), gpio(4), npx(4) at isa(4), nsphyter(4), pci(4), pcib(4),
pcmcia(4), ppb(4), sip(4), wd(4), and wdc(4) at isa(4).

Add a device-detachment "reason" flag, DETACH_SHUTDOWN, that tells the
autoconf code and a device driver that the reason for detachment is
system shutdown.

Add a sysctl, kern.detachall, that tells the system to try to detach
every device at shutdown, regardless of any device's DVF_DETACH_SHUTDOWN
flag.  The default for kern.detachall is 0.  SET IT TO 1, PLEASE, TO
HELP TEST AND DEBUG DEVICE DETACHMENT AT SHUTDOWN.

This is a work in progress.  In future work, I aim to treat
pseudo-devices more thoroughly, and to gracefully tear down a stack of
(pseudo-)disk drivers and filesystems, including cgd(4), vnd(4), and
raid(4) instances at shutdown.

Also commit some changes that are not easily untangled from the rest:

(1) begin to simplify device_t locking: rename struct pmf_private to
device_lock, and incorporate device_lock into struct device.

(2) #include <sys/device.h> in sys/pmf.h in order to get some
definitions that it needs.  Stop unnecessarily #including <sys/device.h>
in sys/arch/x86/include/pic.h to keep the amd64, xen, and i386 releases
building.
2009-04-02 00:09:32 +00:00
darran
d4dd9a671a Missed a small but important change to enable hardware VLAN support. 2009-03-31 06:58:55 +00:00
darran
0b4bf6c76b Enable the vlan code that thorpej@NetBSD.org added, and fix a bug where
the vlan tag was read from the rx descriptor after it was reinitialized
(and hence was always 0).  Hardware vlan support looks good tested
between two vmware clients.
With support from tls@NetBSD.org.
2009-03-31 04:16:57 +00:00
mrg
7216702ebd add a radeon-x1550 (works as well as other rv5xx i guess.) 2009-03-29 19:39:50 +00:00
mrg
4d1ad63f2e XXX: for now, add the DRM_NETBSD_HANDLE2ADDR() hack in a few places.
update a debug message.
2009-03-29 19:37:25 +00:00
msaitoh
60500a38d2 Add workaround for 82543GC.
We need to force speed and duplex on the MAC equal to what the PHY
speed and duplex configuration is. Fixes PR#36430.
2009-03-29 16:22:17 +00:00
dholland
3781289e95 Merge patch from PR 12605, which tidies up allocation of transmit DMA maps.
Generalize it to also tidy up allocation of receive DMA maps. And change a
few of the symbol names involved to (1) make sure all uses have been fixed
and (2) make it clearer what's actually going on.

Previously the driver was using DMA maps off the free list without fully
allocating them, apparently in order to save two or three lines releasing
them on error paths. According to the submitter of the PR (H.Saito) this
was causing it to reuse a map already in use when under load, resulting
in panics.

I'm not sure if that ought to have been possible or if it reflected an
interrupt handling bug somewhere else, but the change is an improvement
regardless, so we'll go with it.

Compile-tested only, but I've crosschecked the diffs and all that and it's
a pretty noninvasive change.

(Is anyone actually using this driver rather than tlp?)
2009-03-29 05:26:43 +00:00
dyoung
858d3b857c If a sip(4) is powered down, then so is its PHY, so don't try to read
media status from the PHY.
2009-03-27 16:45:53 +00:00
dholland
c963cec011 Add the other three PCI ids for the nvidia MCP65 SATA controller to
the quirk table. This way they attach as ahcisata and work, instead of
attaching as viaide and failing miserably.

Fixes PR kern/37826.

XXX: There are a bunch of additional MCP67 and MCP73 PCI ids that
XXX: should probably be added also, but I don't want to do that without
XXX: further investigation and testing.
2009-03-27 06:36:49 +00:00
msaitoh
9384d3cea3 Take some code from FreeBSD and OpenBSD
-Add some known CHIPID entries.
 -Add a code for BCM5906 into bge_chipinit(). We have to do more work for
  BCM5906.
 -Fix the case of setting a flag in BGE_PCI_DMA_RW_CTL (on conventional PCI).
2009-03-22 18:54:59 +00:00
msaitoh
2abe3d4169 Make bge(4) close to FreBSD and OpenBSD.
NO FUNCTIONAL CHANGE BY THIS COMMIT.
2009-03-22 18:14:59 +00:00
msaitoh
a23f160d73 Make bge(4) close to FreBSD and OpenBSD.
NO FUNCTIONAL CHANGE BY THIS COMMIT.
2009-03-22 16:20:06 +00:00
msaitoh
a95fdaad68 eliminate PHY_1 quirk (like OpenBSD (rev. 1.110) and FreeBSD (rev. 1.44)) 2009-03-22 16:12:53 +00:00
msaitoh
4a8c9df3c3 Examine the management mode and mark DRV_LOAD (for ICH{8,9,10},80003,
8257{1,2,3,4}).

Add some error's printf().

Make the bank detect routine into the function.
2009-03-20 07:29:15 +00:00
msaitoh
8a7c1f65b7 On i82563, the em driver says that the ready bit in the MDIC register may be
incorrectly set. Insert delay(200) like the em driver. Fixes PR#41014.
2009-03-20 06:27:53 +00:00
tsutsui
b1063595a6 Add braces missed on RX hardware cksum support.
Fixes RX failure on 82557/82558.
2009-03-19 15:28:04 +00:00
cegger
e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
cegger
c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger
35fb64746b bcmp -> memcmp 2009-03-18 15:14:29 +00:00
dyoung
018696dd66 Handle child-detachment by NULL'ing the child pointer so that
auich_detach() does not subsequently dereference a dangling pointer.
2009-03-17 19:38:34 +00:00
dsl
7cc9af7d64 ANSIfy functions with function-pointer arguments 2009-03-16 23:11:09 +00:00
cegger
dc56dbbd97 ansify function definitions 2009-03-15 21:23:31 +00:00
cegger
f7d20361b0 ansify function definitions 2009-03-15 15:40:33 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
jym
96f9080096 Fixes in the iwi(4) driver to better handle errors:
- bus_dmamap fixes, with checks against NULL
- move the rings' allocation code later in iwi_attach() to avoid NULL pointer
dereference if allocation fails
- avoid double free() in case of failure during attach. If an allocation fails,
do not free the ring directly, as it is handled by iwi_detach()
- only set ring->count for RX/TX rings when ring allocation is successful, or
else the for loop during detach will fail with a NULL dereference.
- call pci_intr_disestablish() if iwi_reset() fails during attach; driver is
in an incoherent state, interrupt handler should not be used.

Proposed by me on tech-net@, approved by christos@. Compiled and tested
with GENERIC and XEN3_DOM0 kernels.
2009-03-13 21:57:07 +00:00
bsh
01bbe49d65 Turn off interrupt disable bit in command status reg.
This is necessary to make S-ATA drives work on some motherboards with
SiS964 including my ASUS P4S800D.
2009-03-12 15:02:42 +00:00
tsutsui
b057550bcf u_intNN_t -> uintNN_t 2009-03-11 13:12:41 +00:00
msaitoh
9d35632b3f add an entry for 82567LF-3.
fix the register access for ICH10DO.
2009-03-10 03:41:50 +00:00
msaitoh
76b6d5d63e regen 2009-03-10 03:31:36 +00:00
msaitoh
9036c274a6 add i82567LF-3 LAN Controller 2009-03-10 03:30:55 +00:00
christos
049ae3d056 Match Inter 82965PM, from Anon Ymous 2009-03-09 13:13:25 +00:00
tsutsui
cf97a4b35d Add TCPv4/UDPv4 RX hardware checksum support for i82559 and later chips
which don't have EXT_RFA and IPCB support. From hme(4) driver and
FreeBSD's fxp(4). Tested on i82559.

XXX: Probably we should have a common function to parse RX packet headers
XXX: to handle a raw checksum value and share it among hme(4) and gem(4) etc.
2009-03-07 15:03:25 +00:00
dyoung
0226a0496e Don't try to write the registers of the NIC to stop it if it is
already powered down.  This change prevents PCI bus exceptions
(indicated by NMI) when, for example, I detach the whole device
tree on a Soekris net4521:

com1: detached
NMI ... going to debugger
Stopped in pid 0.1 (system) at  netbsd:sipcom_stop+0x4d:        pushl   $0
db{0}> continue
NMI ... going to debugger
Stopped in pid 0.1 (system) at  netbsd:sipcom_stop+0x149:       addl    $0x10,%e
sp
db{0}> continue
sip0: detached

(On the AMD Elan SC520, the NMI occurs at the instruction after
the write or, if the write was posted, at either that instruction
or some later one.)
2009-03-07 00:56:04 +00:00
tsutsui
19b9bc7f5d The Intel manual says that ICH and 82562 chips are compatible with 82559,
not 82550, so don't set FXPF_EXT_RFA (available only on 82550/82551)
for those variants.

Tested on Intel PRO/100 VM with 82562EM/EX PHY by ISHII Kimio
on current-users, and should also fix PR kern/40431.
2009-03-06 09:54:02 +00:00
msaitoh
f9ccf64b65 Fix typo(s/interupt/interrupt/) 2009-03-05 01:38:12 +00:00
cegger
05d55db82b mimic fix from nfe(4):
when bus_dmamap_create fails, then the map pointer is undefined.
age_dma_free() assumes, the map pointer is NULL. Make the assumption
always true by setting the map pointer to NULL in bus_dmamap_create()
error path in order to prevent age_dma_free() to call bus_dmamap_destroy()
on an invalid map.
2009-03-03 23:28:44 +00:00
cegger
4822727b65 make multicast working.
Diff from OpenBSD's if_age.c rev. 1.2.
2009-03-03 22:26:41 +00:00
mrg
dcd94c7684 enable FXPF_EXT_RFA the same way the cardbus frontend does. 2009-03-03 06:06:40 +00:00
cegger
2352b93556 bzero -> memset per request from martin@
bcopy -> memcpy

XXX Would changing bcmp to memcpy be a functional change regarding its return value?
2009-03-01 13:44:54 +00:00
cegger
945fa6c58f when nfe_attach() fails, free all resources including
interrupt map, interrupt handler and dma maps.
Also prevent call to bus_dmamap_destroy() when bus_dmamap_create() failed.
The nfe_free_* routines assume, the map pointers are NULL but they
are actually undefined. Make the assumption true by making them NULL
in the error path of bus_dmamap_create().

All together, this fixes crashes when nfe_attach() fails.
ok martin@
2009-03-01 13:34:10 +00:00
cegger
927cfb73c8 MCP79 supports JUMBO frames.
Information from Linux driver.
Patch presented on current-users@ http://mail-index.netbsd.org/current-users/2009/02/11/msg008037.html
2009-03-01 08:29:25 +00:00
schwarz
8167178188 correct entry for Lucent 0x5802 into 2-port USB Host Controller 2009-02-28 17:55:46 +00:00
jmcneill
4ca035a32b Add proper Realtek ALC268 support. While we're here, fix a comment in
the ALC262 quirk section. Tested by Sean Davis on an Acer Aspire One.
2009-02-28 17:12:13 +00:00
msaitoh
95deb7702d Fix the multicast hash bug on ICH9's wm.
Now we can catch ff02::9 on ICH9's wm.
2009-02-28 15:06:43 +00:00
sborrill
7d02030263 Add support for 82574L (as found on Desktop CT adaptor) based on 82573 support. 2009-02-27 13:17:01 +00:00
mjf
c49f4c3690 Regen. 2009-02-26 19:17:01 +00:00
mjf
c1c5918fbb Add Initio INIC-1622 SATA Controller. 2009-02-26 19:13:38 +00:00
jmcneill
079289a3e6 PR# port-i386/40143: Viewing an mpeg transport stream with mplayer causes crash
Not directly related to the PR but this bug was discovered while testing.

In azalia_stream_halt, invalidate the intr ptr to prevent a race condition
where azalia_stream_intr can jump off into lala land during stream shutdown.
2009-02-25 15:46:34 +00:00
jmcneill
72141a1696 Turn "bogus parameters" aprint_error into aprint_debug, and change the
message to say that the framebuffer was not configured by the firmware.
2009-02-23 23:45:56 +00:00
cegger
6ec3b632d5 when attach routine fails, also free DMA memory and interrupt mapping.
Diff from OpenBSD's if_age.c rev. 1.2.
ok cube@
2009-02-23 13:39:41 +00:00
cegger
b6d8a5c8fc remove unused age_if_flags softc member 2009-02-23 07:33:58 +00:00
jmcneill
34c593f760 * Realtek ALC885: Use generic_mixer_autoinit/init_widget
* generic_mixer_create_virtual: if the front l/r DAC doesn't have a volume
  capability, enumerate all peer widgets and search for a volume mixer
  there.
2009-02-23 02:34:57 +00:00
mrg
ce8a6e2599 - remove FXPF_IPCB flag. it should always/only be used with the code
conditional on FXPF_EXT_TXCB, so, replace all uses with that
- for the pci frontend, reestablish some flags lost the the prior
  changes and simplify one of the cases

this fixes PR 40677 and may fix PR 40431.
2009-02-20 05:49:34 +00:00
sborrill
d297edd948 Regen 2009-02-19 17:26:21 +00:00
sborrill
73ab5cd89f Add Intel i82574L 1000baseT Ethernet as used in Pro/1000 CT Desktop adapter 2009-02-19 17:25:46 +00:00
markd
e985093766 Add missing break. 2009-02-19 05:58:37 +00:00
jmcneill
60c3292c48 Use aprint_* 2009-02-17 20:35:35 +00:00
jmcneill
e04f5ff1b4 Provide callbacks so MD code can explicitly prevent genfb from matching;
works around vga/genfb deathmatches.
2009-02-16 22:24:40 +00:00
cegger
0df426b492 make this compile w/o VLAN 2009-02-16 09:38:41 +00:00
cegger
add29455bf fix media priorities:
IEEE 802.3 Annex 28B.3 specifies the following relative
priorities of the technologies supported by
802.3 Selector Field value:

1000BASE-T full duplex
1000BASE-T
100BASE-T2 full duplex
100BASE-TX full duplex
100BASE-T2
100BASE-T4
100BASE-TX
10BASE-T full duplex
10BAST-T

Our drivers give 100BASE-T4 a higher priority than
100BASE-TX full duplex.
Fix this. This patch is based on changes in FreeBSD and OpenBSD.

Patch presented on tech-kern and tech-net:
http://mail-index.netbsd.org/tech-kern/2009/02/15/msg004397.html
http://mail-index.netbsd.org/tech-net/2009/02/15/msg001064.html

got no comments, no objections.
2009-02-16 08:00:42 +00:00
jmcneill
ec798a6e6c Introduce genfb_ops genfb_borrow callback to allow the bus frontend to
lend mappings to drm.
2009-02-15 18:41:49 +00:00
jmcneill
a71612a2f8 Provide a stub genfb_cnattach for md code to call to give a hint to the
bus driver's match function to return a higher confidence (so it can
beat out vga(4), for example). genfb needs-flag so md code can determine
if the genfb driver is present.
2009-02-14 20:33:58 +00:00
bouyer
73920b4161 More printf format fixes. 2009-02-13 23:31:23 +00:00
bouyer
e83cf7c074 Fix bus_addr_t/bus_size_t confusion 2009-02-13 22:39:37 +00:00