summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2007-07-02jmicron have a 2 port sata chip called teh jmb362David Gwynne
2007-07-02syncDamien Bergamini
2007-07-02new 4965agn product Id.Damien Bergamini
2007-07-02only attach ahci or pciide if the chip can actually support them. deal withDavid Gwynne
the JMB368 while here.
2007-07-02kettenis suggested that i can use pci_intr_map twice on the same deviceDavid Gwynne
safely, so i tried it and it worked great. i can reuse the pci_attach_args to attach ahci and now pciide to jmb without really modifying either of them. lots of code shrinks. ok jsg@
2007-07-02dont force probing of high functions on jmicron controllers. we dont enableDavid Gwynne
function 1 anymore.
2007-07-02dont enable the second pci function for pciide support. we're going toDavid Gwynne
solve this problem a different way now.
2007-07-02dont attach on jmicron parts now that jmb(4) does that for us.David Gwynne
2007-07-02jmicron controllers are strange cos they provide both ide and sata supportDavid Gwynne
on the same pci function. they can be configured to put the different support on different pci functions after booting, but that is unreliable since the kernel doesnt know enough to be able to configure the interrupts properly on this new pci function. this adds a "nexus" driver called jmb that will allow two drivers to attach to the one pci device. this code already fixes things so ahci can attach to the sata stuff. this is more reliable than switch functions on since the interrupts on function 0 are configured by the firmware/bios/whatever.
2007-07-02move ahci_softc and the prototype for ahci_attach into a header so otherDavid Gwynne
code will be able to see it.
2007-07-02pull ahci_attach apart slightly to accommodate attaching ahci(4) to thingsDavid Gwynne
other than pci(4).
2007-07-01fix potential crash due to wrong ca_devsize; whilst here, also fix iobase ↵Constantine A. Murenin
type; ok grange, kettenis
2007-06-30regenJonathan Gray
2007-06-30Add a few devices found in submitted dmesgsJonathan Gray
2007-06-30Add 802.11d (domain info) command.Marcus Glocker
2007-06-29ansify/de-registerJasper Lievisse Adriaanse
no binary change
2007-06-29respect timeouts. prompted by freebsd pr110122, but also proplerlyHenning Brauer
calculate the timeout. help & ok jsg
2007-06-29force the pci bus probe routines to look for extra functions on jmicronDavid Gwynne
controllers. pciide on function 1 isnt enabled until ahci gets to touch it, which is too late for the probe routines to discover that there are high functions to look at.
2007-06-29when we attach to the jmicron controllers, whack their configuration aroundDavid Gwynne
a bit. this guarantees that the controller has its ahci stuff enabled for us to use (which was previously done with magic numbers). this also configs the controller to enable a second function for pciide to attach to.
2007-06-29demystify a little more of the jmicron pci control registersDavid Gwynne
2007-06-29define away some of the magic on jmicron controllersDavid Gwynne
2007-06-27Shrink code by not using __inline without static; like we did for sk(4).Mark Kettenis
From brad at comstyle dot com.
2007-06-26Make natsemi_pci_intr() use pciide_intr_flag(). Needed on the PC87415 partMark Kettenis
integrated on the PC87560 Legacy IO chip found on several hppa workstation models. ok jsg@
2007-06-26Implement bit swap for a byte in O(log(N)) rather than O(N), promptedTom Cosgrove
by an interview question I was asked. ok reyk@
2007-06-26Fix "the the"s. ok miod@.Tom Cosgrove
2007-06-26Alignment fixes from mickey.Jonathan Gray
2007-06-25support early W83627EHF-A; tested by Sam Fourman Jr; discussed with Gong ↵Constantine A. Murenin
Jun; ok kettenis@
2007-06-25Fix a couple of "of of"s in comments.Tom Cosgrove
2007-06-24Fix typo in (unused) #define.Mark Kettenis
2007-06-24rework sensor tasks to use the kernels generic workq rather than a specialDavid Gwynne
kernel thread of its own. the api has changed (which will be fixed in the manpage shortly) so all the users of sensor tasks that i can find have been fixed too. noone tested, so its going in to force people to run with it. "put it in" deraadt@
2007-06-23Accept 0x00 as notify type since some notebooks (MSI-S260)Can Erkin Acar
incorrectly use it when signaling events. ok marco@
2007-06-23Remove raidmakedisklabel(). The only invocation was commented out inKenneth R Westerback
2000, presumably because we spoof a label when one is not found. This removes the last (?) code that assigned a file type other than FS_UNUSED to the RAW_PART partition.
2007-06-22syncTodd T. Fries
2007-06-22according to claudio, entries should be ordered by PCI ID, fix two not in orderTodd T. Fries
ok claudio@, mk@ .. noticed by brad
2007-06-22Regen.Alexander Yurchenko
2007-06-22Add vendor/product HUMAX/PVR-SMART for jmc@.Alexander Yurchenko
2007-06-22ansify/de-registerJasper Lievisse Adriaanse
no binary change
2007-06-21rework how the IFF_PROMISC and IFF_ALLMULTI flags are dealt with, and howDavid Gwynne
the multicast filter is programmed. IFF_ALLMULTI is for use by the driver and only the driver, meaning that we have to clear it when its not needed anymore. now that the ethernet layer counts the number of multicast address ranges we can check that early to determine if ALLMULTI is needed, rather than doing the stupid goto allmulti dance as we iterate over the multicast address list. the imperfect multicast filter is a 16 byte wide bitfield, so we can use the "setbit" macro to build it in memory, and then write it to the hardware as a bus_space region. this simplifies the code a lot and avoids confusing bitshifts on u_int32_ts to get the bits in the right place. tested by krw on amd64, naddy on alpha, deraadt on sparc64, and beck on various bits. ok beck
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-20Better recovery when osiop goes nuts and spitsMiod Vallat
osiop0: osiop_select while connected? in loops. Before returning from the interrupt handler, whack the chip. Unfortunately, this causes the few i/o which were queued to time out, but this is better than spinning and eventually panicing.
2007-06-20Add support for VIA CX700/VX700 IDE.Jonathan Gray
Tested by jcs@ on a model 2 oqo.
2007-06-20regenJonathan Gray
2007-06-20Add a few VIA devices found in jcs' model 2 oqo.Jonathan Gray
2007-06-19attach to the novatel ES620 found in the oqo model 2 w/sprint cardjoshua stein
2007-06-19regenjoshua stein
2007-06-19novatel ES620 CDMA modem found in the oqo model 2joshua stein
2007-06-19KNF after the recent macro expansion, mostly prototype indendation.Marc Balmer
No binary change. ok uwe.
2007-06-19Pass the correct flag to sbt_start() in sbt_start_cmd()Uwe Stuehler
2007-06-19better debug outputUwe Stuehler