summaryrefslogtreecommitdiffstats
path: root/sys/pci
Commit message (Collapse)AuthorAgeFilesLines
* Some imporvemnets to the vx driver.guido1996-12-021-1/+1
| | | | | | | | | | | | 1. 'connector_table' is shortened to 'conn_tab'. 2. More reliable connector change code. 3. Display message like "vx0: selected bnc. (link1)" when the connector changed by link[012]. 4. Handle MII properly. 5. Potentially slightly better performance. 6. Fixed a silly typo. Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp>
* Cosmetic code cleanup from Matt's latest driver.rgrimes1996-12-013-386/+383
| | | | | | | | | | | | | | | | | | | | a) Removal of private typedefs tulip_uint*_t, use standard u_int_*_t. b) Change [Dd][Cc]21.4. to just 21.4., seems Dec has done this to all of the drivers for all OS's. (Did they get in trouble with someone?) [The few that remain can either not be eliminated, or are waiting for additional driver functional changes that will remove them.] c) Move some code from dc21040.h into the driver, later a whole block of that code and more will move to devar.h, but for now this makes it easier to study diffs. d) Add a big bold comment to the README.de file about it not reflecting reality anymore. Note that these are all cosmetic changes and should be no functional change in the driver whatsoever. If _anyone_ spots a problem introduced by this please let me know ASAP!
* Fixed obsolete comment.dg1996-11-181-3/+2
|
* AHC_FORCE_PIO -> AHC_ALLOW_MEMIOgibbs1996-11-161-2/+2
|
* Some more updates.asami1996-11-141-5/+1
| | | | | | | | | | | | | | | | | | | | wdreg.h: Delete wd_ctlr macro. PC98 version of wd.c treats it as a variable. GENERIC98: Delete ep0 entry. Current ep driver write I/O port 0x100. This clobbers ICW of i8259, because upper 8bits of address line is not masked on mother board. if_fe.c: Merge from revision 1.18 of sys/i386/isa/if_fe.c. pc98.c: Globalize dmapageport, because SCSI driver use this variable. wd82371.c: Yet another merge. These are 2.2 candidates. Submitted by: The FreeBSD(98) Development Team
* Oops I forgot to add the official id for this card.jhay1996-11-131-2/+3
|
* Add support for header type == 1 devices (PCI 2.1 compatible PCI to PCIse1996-11-123-4/+11
| | | | | | | | bridges with support for 64 bit memory addresses and 32 bit I/O addresses). The code is not complete. It ignores the upper half of the long addresses. This is not a problem on PC compatible systems, but has to be fixed for real computers.
* Fix PCI to PCI bridge register bit field masks.se1996-11-122-36/+11
| | | | | Thanks to "Mike Durian" <durian@plutotech.com> for the very good problem report and his support as a beta tester of this patch.
* Clean up the memory mapped/Programmed I/O stuff so that the driver completelygibbs1996-11-111-69/+73
| | | | | | | | | | | | | | uses one or the other. This required some changes to the ahc_reset() function, and how early the probes had to allocate their softc. Turn the AHC_IN/OUT* macros into inline functions and lowercase their names to indicate this change. Geting AHC_OUTSB to work as a macro doing conditional memory mapped I/O would have been too gross. Be smart about the STPWEN control bit in SCFRCTL1. It should only be set if the low byte of the bus is to be terminated. We figure this out either by "caching" the value left over from the BIOS setup before we reset the card or by using the values stored in the seeprom if it is availible.
* Put the packet error printf inside #ifdef DIAGNOSTIC.dg1996-11-101-1/+3
|
* Only access the specific interrupt status registers if required.se1996-11-081-4/+4
| | | | | | | | | This follows more closely the suggestions in the latest NCR docs, and has been running on my system for weeks with no problem. It does improve the quality of diagnostic messages and does allow to better understand the sequence of events in case of an error. This should go into 2.2 and 2.1.6.
* Clean up some code having to do with the 398X cards. We can't rely on thegibbs1996-11-051-10/+30
| | | | | | | | | 7810 being either the last of the first device to be probed, so use a counting scheme instead to determine when one card ends and another begins. There may be a better way to do this by decoding the PCI tag, which I will investigate later. 2.2 Candidate.
* New vx driver for:guido1996-11-043-1596/+145
| | | | | | | | | | | | | | | | | | | | 3COM 3C590 Etherlink III PCI, 3COM 3C595 Fast Etherlink PCI, 3COM 3C592 Etherlink III EISA, 3COM 3C590 Fast Etherlink EISA, 3COM 3C900 Etherlink XL PCI and 3COM 3C905 Fast Etherlink XL PCI. This driver is based on OpenBSD's driver. I modified it to run under FreeBSd and made it actually work usefully. Afterwards, nao@tom-yam.or.jp (HAMADA Naoki) added EISA support as well as early support for 3C900 Etherlink XL PCI and 3C905 Fast Etherlink XL PCI. He also split up the driver in a bus independant and bus dependant parts. Especially the 3c59X support should be pretty stable now. Submitted by: partly nao@tom-yam.or.jp (HAMADA Naoki) Obtained from:partly OpenBSD
* Add support for the SDL RISCom N2pci cards. Bring in the enhancementsjhay1996-10-291-0/+133
| | | | made to the Arnet driver.
* Add basic support for the 398X cards as multi-channel SCSI host adapters.gibbs1996-10-281-23/+106
| | | | | | | | | | | | This involves expanding the support of the SEEPROM routines to deal with the larger SEEPROMs on these cards and providing a mechanism to share SCB arrays between multiple controllers. Most of the 398X support came from Dan Eischer. ahc_data -> ahc_softc Clean up some more type bogons I missed from the last pass.
* - KNF cleanup.gibbs1996-10-251-170/+143
| | | | - Add support for memory mapped I/O.
* Definitions for ioctl() accesses to PCI config space registers.se1996-10-221-0/+36
| | | | Submitted by: wollman
* Add support for ioctl() accesses to PCI config space registers.se1996-10-222-4/+167
| | | | | | | | | Garrett Wollman sent me this code a few weeks ago for review, and I made some significant changes, which he in turn accepted ... In order to make use of these changes, a device entry has to added to /dev. Submitted by: wollman
* Updated #includes to 4.4lite style.bde1996-10-156-11/+12
|
* pci_map_mem() did a too restrictive check on the mapping type:se1996-10-141-2/+4
| | | | | | PCI_MAP_MEMORY_TYPE_32BIT_1M should be accepted as well as PCI_MAP_MEMORY_TYPE_32BIT (and now is). (Problem reported by David Greenman.)
* Move the initialization of np->ns_sync and ns_async out of ncr_getclock(),se1996-10-141-4/+4
| | | | | which does no longer get called for non-Ultra cards. Fix suggested by Gerard Roudier, slightly modified by me.
* Changes to add support for the PCI version of the Cyclades Cyclom-Ydg1996-10-132-0/+172
| | | | serial adapter, and support for multiple Cyclom controllers.
* Removed nested include if <sys/socket.h> from <net/if.h> andbde1996-10-121-1/+2
| | | | | | | <net/if_arp.h> and fixed the things that depended on it. The nested include just allowed unportable programs to compile and made my simple #include checking program report that networking code doesn't need to include <sys/socket.h>.
* Fix previous commit: The INB/OUTB macros require np->vaddr to bese1996-10-121-10/+10
| | | | | | initialized, or a kernel panic will occur. Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* Improve support of SCSI cards based on the 53c860 and 53c875.se1996-10-112-67/+124
| | | | | | | | | | | Still no support for Ultra-SCSI and other new features, but the code should now correctly initialize the clock pre-scaler (based on freqency measurement results, if necessary). Fix support of 16 targets for WIDE SCSI. Disable bus reset in case no progress is made for too long ("ncr dead" message), which did not work too well with scanners and other slow devices.
* Implement the 802.3 MIB in a way that uses the generic interfacewollman1996-10-101-3/+17
| | | | defined in if_mib.h.
* The recent change to clock.h to include opt_cpu.h (bug!!!) uncovered apst1996-10-101-5/+2
| | | | | compile error in ncrcontrol.c -- ncr.c should not be including clock.h when not compiled for the kernel.
* Bring aic7xxx driver bug fixes from 'SCSI' into current.gibbs1996-10-061-9/+15
|
* Added multicast support (BPF cookie bug was already fixed).dg1996-10-032-4/+43
| | | | Submitted by: Steven McCanne <mccanne@cs.berkeley.edu>
* Backed out one of my "performance optimizations" as it results in sometimesdg1996-09-291-9/+13
| | | | | | | | | not resuming the NIC as required for transmit. Thanks to Alan Cox <alc@cs.rice.edu> for noticing this. Added another performance optimization to compensate. :-) Changed crscdt to 1...strange, but this seems to be needed for some reason despite what the manual says.
* Fixed a bug with the management of the pointer to the first TxCB in thedg1996-09-221-49/+38
| | | | | | | ring that caused wrong things to happen sometimes. Doubled the number of transmit descriptors to 128 so that the internal FIFO in the NIC can be fully filled when dealing with small packets. Several minor performance improvements.
* Fixed a bug in the receive buffer allocation code that resulted in adg1996-09-201-5/+14
| | | | | panic if an mbuf cluster couldn't be allocated. This was caused by a failure to re-initialize m_data when the old mbuf/mbcluster was recycled.
* Add back shutdown support, this time using the at_shutdown() mechanism.dg1996-09-201-14/+11
|
* When the devconf stuff was ripped out of the kernel, the ripper neglecteddg1996-09-201-18/+17
| | | | | | | | to deal with the fact that we relied on devconf to do the shutdown callouts in various drivers. The changes in this commit are to add support for device shutdown in this driver via the new at_shutdown() mechanism. Similar changes need to be made to all of the other drivers that need a shutdown routine called (if_de.c comes to mind immediately).
* Implemented a better, dynamic, mechanism for adjusting the transmitdg1996-09-191-2/+19
| | | | threshold.
* Increased transmit threshold to 1024 bytes to fix a problem with underrunsdg1996-09-181-2/+2
| | | | on machines with poor PCI performance.
* Updated driver to a newer version from Matt Thomas, preserving our localdg1996-09-182-477/+762
| | | | | | | changes. This version should fix a number of bugs such as with auto- speed sensing and at least one known panic. Submitted by: Matt Thomas (matt@3am-software.com)
* Re-enable conf82371fb2 now that I have verified that it works, even ifrgrimes1996-09-161-5/+1
| | | | | it only prints 2 bits out of hundreds. (Minimizing the diff between -head and 2.1.5.)
* Removed more devconf leftovers.bde1996-09-102-40/+2
|
* Updated #includes to 4.4Lite style.bde1996-09-102-6/+6
|
* Remove the portion of revision 1.36 that added the #ifdef's for CPUrgrimes1996-09-091-19/+1
| | | | types as per discussions with Stefan Esser.
* Various cleanups for remanents of devconf.phk1996-09-081-11/+1
|
* Preserve volatility in casts of np->reg. Cosmetic.bde1996-09-071-5/+5
|
* Remove devconf, it never grew up to be of any use.phk1996-09-069-130/+23
|
* Partial merge of RELENG_2_1_0 -> HEAD (addition of Intel 82439HX chip text).rgrimes1996-09-061-1/+3
|
* Fix Orion specific code by moving config_orion() to a place where it doesse1996-09-051-42/+50
| | | | | | | | not depend on bootverbose being true. Include only register specifications for those chip sets that apply to a cpu that might boot this a particular kernel (ie. make the Saturn code depend on I486_CPU being defined, the Pentium chip sets on I586_CPU ...)
* Fix code that deals with multiple host to PCI bridges by making the nextse1996-09-051-1/+2
| | | | one use the highest seen bus number plus 1 as its starting point.
* Correct previous Orion specific fix: The configuration registerse1996-09-021-2/+2
| | | | access function always returns a DWORD aligned DWORD ...
* Add preliminary support for the Orion PCI chip set. It is special in these1996-09-022-24/+105
| | | | | | | | | | | | | | | | way it attaches multiple PCI buses directly to the CPU, instead of having them hanging off from PCI to PCI bridges. This code is a hack, and will be obsoleted by the planned rework of the PCI code, which will change the dealing with PCI to PCI bridges and other special devices significantly. The patch also adds a kern_devconf entry for PCI bus 0 which is assumed to be a child of cpu0. The new PCI code will make it possible to hand out the kern_devconf structure to a pci device being attached, since this is (regretably, IMHO) required by a few ISA devices. Finally there are new PCI ids for some Intel chip set devices, which had already been known to 2.1.5R, but did not make it into -current. This closes "kern/1558: PCI probe seems to have lost a device in -current".
* Use "" instead of <> for a header in the current directory.bde1996-08-281-7/+2
| | | | | Don't #include an unused header from i386/isa. Headers from there shouldn't be included in "isa-independent" files anyway.
OpenPOWER on IntegriCloud