summaryrefslogtreecommitdiff
path: root/sys/dev/sio/sio_pci.c
Commit message (Collapse)AuthorAgeFilesLines
* - add support for Broadcom 802.11bg/EDGE/GPRS CardBus (Serial)Eitan Adler2011-11-151-1/+2
| | | | | | | | | | | | - correct mislabeling of 0x432214e4 device PR: kern/119606 Submitted by: Joe Greco <jgreco@ns.sol.net> Approved by: jhb MFC after: 1 week Notes: svn path=/head/; revision=227532
* remove now-redunant cardbus attachment.Warner Losh2009-03-091-1/+0
| | | | Notes: svn path=/head/; revision=189575
* Allow device hints to wire the unit numbers of devices.John Baldwin2008-11-181-31/+0
| | | | | | | | | | | | | | | | | | | | | | | - An "at" hint now reserves a device name. - A new BUS_HINT_DEVICE_UNIT method is added to the bus interface. When determining the unit number of a device, this method is invoked to let the bus driver specify the unit of a device given a specific devclass. This is the only way a device can be given a name reserved via an "at" hint. - Implement BUS_HINT_DEVICE_UNIT() for the acpi(4) and isa(4) bus drivers. Both of these busses implement this by comparing the resources for a given hint device with the resources enumerated by ACPI/PnPBIOS and wire a unit if the hint resources are a subset of the "real" resources. - Use bus_hinted_children() for adding hinted devices on isa(4) busses now instead of doing it by hand. - Remove the unit kludging from sio(4) as it is no longer necessary. Prodding from: peter, imp OK'd by: marcel MFC after: 1 month Notes: svn path=/head/; revision=185059
* o Revert last. The chip is already supported by puc(4).Maxim Konovalov2007-03-291-1/+0
| | | | | | | Pointed out by: marcel, Joseph Terner Notes: svn path=/head/; revision=168015
* o Add MosChip 9835 PCI Dual UART PCI id.Maxim Konovalov2007-03-281-0/+1
| | | | | | | | | PR: kern/110967 Submitted by: Joseph Terner MFC after: 1 month Notes: svn path=/head/; revision=168002
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-291-1/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Oops, revert a commit that snuck in with the earlier critical sectionJohn Baldwin2005-04-051-1/+0
| | | | | | | | | changes. Noticed by: bde Notes: svn path=/head/; revision=144677
* Divorce critical sections from spinlocks. Critical sections as denoted byJohn Baldwin2005-04-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | critical_enter() and critical_exit() are now solely a mechanism for deferring kernel preemptions. They no longer have any affect on interrupts. This means that standalone critical sections are now very cheap as they are simply unlocked integer increments and decrements for the common case. Spin mutexes now use a separate KPI implemented in MD code: spinlock_enter() and spinlock_exit(). This KPI is responsible for providing whatever MD guarantees are needed to ensure that a thread holding a spin lock won't be preempted by any other code that will try to lock the same lock. For now all archs continue to block interrupts in a "spinlock section" as they did formerly in all critical sections. Note that I've also taken this opportunity to push a few things into MD code rather than MI. For example, critical_fork_exit() no longer exists. Instead, MD code ensures that new threads have the correct state when they are created. Also, we no longer try to fixup the idlethreads for APs in MI code. Instead, each arch sets the initial curthread and adjusts the state of the idle thread it borrows in order to perform the initial context switch. This change is largely a big NOP, but the cleaner separation it provides will allow for more efficient alternative locking schemes in other parts of the kernel (bare critical sections rather than per-CPU spin mutexes for per-CPU data for example). Reviewed by: grehan, cognet, arch@, others Tested on: i386, alpha, sparc64, powerpc, arm, possibly more Notes: svn path=/head/; revision=144637
* puc handles this card, so remove it from here.Warner Losh2005-01-111-1/+0
| | | | | | | PR: 48468 Notes: svn path=/head/; revision=140024
* Remove local hacks to set flags now that the device probe does this for us.Nate Lawson2004-10-141-4/+0
| | | | | | | | | | Tested on every device except sio_pci and the pc98 fd.c. Perhaps something similar should be done for the "disabled" hints also. MFC after: 2 weeks Notes: svn path=/head/; revision=136520
* Add an entry to the PCI ID list to support the serial interface on theBill Paul2004-06-071-0/+1
| | | | | | | | | Broadcom 802.11g/GPRS CardBus card. Submitted by: Yann Berthier yb at sainte-barbe dot org Notes: svn path=/head/; revision=130194
* Sometimes cardbus attachments don't attach, so while we track downWarner Losh2003-11-281-0/+1
| | | | | | | | | | | this problem put these lines back in. While they should be unnecessary, they appear to be sometimes necessary. Reviewed in concept: dfr Approved by: re (scottl@) Notes: svn path=/head/; revision=123019
* Remove explicit cardbus attachments from drivers where this is identicalDoug Rabson2003-11-031-1/+0
| | | | | | | | | | to the pci attachment. Cardbus is a derived class of pci so all pci drivers are automatically available for matching against cardbus devices. Reviewed by: imp Notes: svn path=/head/; revision=121939
* Use __FBSDID().David E. O'Brien2003-08-241-3/+4
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119419
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-1/+1
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119283
* Add yet a patch for the patchwork quilt called sio(4):Poul-Henning Kamp2003-02-271-0/+4
| | | | | | | Allow people set set flags on pci based SIO ports. Notes: svn path=/head/; revision=111620
* Whatever dumbass wrote sio_pci.c didn't include a detach method.Warner Losh2003-02-161-0/+1
| | | | | | | | | | | | | | Wearing said pointy hat, correct the oversight and hope nobody notices. # this should make xircom modems happier to detach once other bugs with # the cardbus layer are fixed. Noticed by: scottl Conical Hat to: imp Notes: svn path=/head/; revision=111014
* Add PCI id for Quatech SSCLP-200/300 lowprofile single-port RS422/485 card.Poul-Henning Kamp2003-01-311-0/+7
| | | | Notes: svn path=/head/; revision=110155
* Add PCI ID and configuration hint for Netmos Nm9845 PCI 6-ports serialMaxim Sobolev2002-07-101-0/+1
| | | | | | | | | | card. Submitted by: Oleg Antoshin <oleh@at2000.kiev.ua> MFC after: 3 days Notes: svn path=/head/; revision=99739
* Add PCI ID for the SeaLevel Ultra 530.PCI single port card.John Baldwin2002-03-201-0/+1
| | | | | | | Sponsored by: The Weather Channel Notes: svn path=/head/; revision=92822
* Remove __P.Alfred Perlstein2002-03-201-3/+3
| | | | Notes: svn path=/head/; revision=92739
* Add device ID for Xircom modem. Also add work around from gwk@sgi.comWarner Losh2002-03-161-1/+1
| | | | | | | | | | | to put the device into 8 bit mode a second time. This appears to have no ill effects on other devices, and appears to be necessary for the xircom modem. Submitted by: gwk@sgi.com, many others that found his patch in the archives. Notes: svn path=/head/; revision=92401
* Add pc98 support.Yoshihiro Takahashi2002-01-311-0/+3
| | | | Notes: svn path=/head/; revision=90010
* Add support for different serial clock frequencies and not just theJohn Hay2002-01-301-2/+2
| | | | | | | | | | standard one of 1.8432MHz. This will be used by the puc (PCI "universal" communication card) device driver. Reviewed by: bde Notes: svn path=/head/; revision=89986
* bde suggests that sio really wants to manage its own softc. ThisWarner Losh2001-11-261-3/+1
| | | | | | | | | | | | allows us to move the sio softc data structure back into sio.c and reduce the complexity of the non sio.c sio files. Submitted by: bde # I didn't fix the locking issues that bruce also submitted. Notes: svn path=/head/; revision=86909
* Break out the bus front ends into their own files. RewriteWarner Losh2001-10-231-0/+147
sio_pccard_detach to use new siodetach. Add an extra arg to sioprobe to tell driver to probe/not probe the device for IRQs. This incorporates most of Bruce's review material. I'm at a good checkpoint, but there will be more to come based on bde's further reviews. Reviewed by: bde Notes: svn path=/head/; revision=85365