summaryrefslogtreecommitdiffstats
path: root/sys/pci
Commit message (Collapse)AuthorAgeFilesLines
* The Great PC98 Merge.asami1996-06-142-2/+10
| | | | | | | | All new code is "#ifdef PC98"ed so this should make no difference to PC/AT (and its clones) users. Ok'd by: core Submitted by: FreeBSD(98) development team
* Updated this driver to a newer version from Matt. This should fix severaldg1996-06-142-678/+2453
| | | | | | bugs related to support of dc21041 chips and other problems. Submitted by: Matt Thomas <matt@3am-software.com>
* Clean up -Wunused warnings.gpalmer1996-06-123-6/+7
| | | | Reviewed by: bde
* Detach the device at shutdown.alex1996-06-111-6/+4
| | | | | Add a prototype for ed_attach_NE2000_pci (this really belongs somewhere else, but where?).
* Scan PCI buses in order the BIOS has assigned them. This is sometimesasami1996-06-091-2/+4
| | | | | | | necessary to boot from a SCSI disk connected to a twin-channel adapter, and you have multiple of them (disks and adapters). Reviewed by: se
* Only assume the scratch ram is valid (we were initialized by the BIOS)gibbs1996-06-081-2/+2
| | | | if SCSIID is something other than 0.
* Here is a patch that fix a few problems with the RGB version ofjkh1996-06-072-13/+78
| | | | | the meteor card. Submitted-by: james
* Set ifnet.baudrate for ethernet / FDDI interfaces too. Makesgpalmer1996-06-011-1/+2
| | | | | | SNMP slightly more informative Reviewed by: Garrett Wollman
* Merge in changes for NetBSD/OpenBSD.gibbs1996-05-301-98/+208
| | | | | | | NetBSD/OpenBSD support Submitted by:Noriyuki Soda <soda@sra.co.jp>, Pete Bentley <pete@demon.net>, Charles M. Hannum <mycroft@mit.edu>, Theo de Raadt <deraadt@theos.com>
* Correct a botched commit from yesturday. It helps to bring over thegibbs1996-05-231-2/+2
| | | | right patch file.<sigh>
* Let the user know what errors are experienced on received packets.wollman1996-05-211-2/+13
| | | | | | | | I spent the better part of a day trying to figure out why my experiment didn't work the way I expected, only to find out that the router was dropping huge numbers of packets because of PCI bus priblems. This does not fix the bug that errors are counted as input packets because my patch doesn't apply cleanly.
* It seems that the aic78X0 chips will either have their scratch ramgibbs1996-05-211-1/+12
| | | | as all 0s or all 1s after POST if there is no BIOS installed.
* Add support for NE2000 compatible PCI Ethernet cards. The PCI probese1996-05-181-0/+95
| | | | | | | | | | | | | | is enabled by having an "device ed0 at isa? [...]" config line. The first PCI card will get a unit number one higher than the highest defined for any ISA card of the ED type, e.g. if ed0 and ed1 are configured, then the PCI cards will be ed2, ed3, ... BEWARE: If you have configured your kernel as ed0 with the port address as assigned by the PCI BIOS, then your card will be found by both the PCI and ISA probes, and bad things may happen. Make sure to restore the original port address form the GENERIC kernel for the ed0 device! Reviewed by: davidg
* Fix range check to actually test the variable that will be used asse1996-05-181-2/+2
| | | | | | an index later. Submitted by: Erich Stefan Boleyn <erich@uruk.org>
* A patch for the meteor device driver. It fixes:jkh1996-05-172-27/+80
| | | | | | | 1) A spelling error pointed out by Paco Hope. 2) A bug in the range checking routing pointed out by Jim Bray. 3) Enables the setting of frames per second. Submitted-By: Jim Lowe <james@miller.cs.uwm.edu>
* Fix a brain-o. The scratch ram on aic78X0 controllers is initialized to 0x00gibbs1996-05-121-2/+2
| | | | | not 0xff after POST, so test for that when trying to determine if a BIOS intialized the card for us.
* Free our device information in one error case in the driver probe.gibbs1996-05-121-1/+2
|
* Add missing '+ io_port' to two outbs.gibbs1996-05-121-5/+4
| | | | | | | Add missing splx() in one error case during probes. Remove unnecessary return and break. Submitted by: Noriyuki Soda <soda@sra.co.jp>
* The aic78X0 cards have 0xff in all bytes of scratch ram after POST. Ifgibbs1996-05-101-30/+58
| | | | | | | | | | | | | a BIOS was not installed, this will still be true by the time we probe the chip. We use this heuristic to determine if we should use the left over scratch ram target settings for controllers that don't have an SEEPROM. We also "snapshot" the host adapter SCSI id and whether ultra is enabled or not and use these values if a BIOS was installed. The card will act as if a BIOS was installed even if there wasn't one if you warm reboot, but since the scratch ram area is still valid in this case, its hardly worth the effort of writing a shutdown routing that clears out the scratch ram. This should make users of motherboard controllers happy.
* Another sweep over the pmap/vm macros, this time with more focus onphk1996-05-033-9/+8
| | | | | the usage. I'm not satisfied with the naming, but now at least there is less bogus stuff around.
* Removed $Log$phk1996-05-021-41/+1
|
* removed:phk1996-05-024-16/+20
| | | | | | | | | CLBYTES PD_SHIFT PGSHIFT NBPG PGOFSET CLSIZELOG2 CLSIZE pdei() ptei() kvtopte() ptetov() ispt() ptetoav() &c &c new: NPDEPG Major macro cleanup.
* Fix logic bug in pci bridge code. For a PCI-PCI bridge, secondaryasami1996-04-251-2/+2
| | | | | | | | should be <= than subordinate, not the other way around. They are both true if the bridge is not cascaded (i.e., twin-channel scsi/e-net adapters won't be affected by this bug), which is probably why it was unnoticed until today.
* Add PCI IDs for the aic7860 (basically an aic7850 Ultra) and the aic7855gibbs1996-04-201-10/+42
| | | | | | | | (HP motherboard aic7850 controllers). Properly handle 4 bit controller SCSI IDs. Update my copyright.
* Update PCI bus code from my current sources:se1996-04-141-155/+165
| | | | | | | | | | | | - always use pci_conf_read() and pci_conf_write(). (This is required to simulate non-existant devices in my system for PCI bridge code tests.) - reorder some functions (put the main functions at the end). - correct off by one bug in the code dealing with unitialized PCI to PCI bridge chips. (Bug found by ASAMI Satoshi.) - print function number for multi-function devices.
* Removed sections 3 and 4 from my copyright.dg1996-04-082-12/+2
|
* Removed never-used #includes of <machine/cpu.h>. Many were apparentlybde1996-04-071-2/+1
| | | | copied from bad examples.
* Removed now-unused #includes of <machine/cpu.h>. They were for bootverbosebde1996-04-074-12/+7
| | | | being declared in the wrong place.
* ncr.c:gibbs1996-03-312-33/+11
| | | | | | | | | | Use new XS_SELTIMEOUT error code for selection timeouts. aic7870.c: Move SCB walking code to aic7xxx.c and make it work for all card types. The flag AHC_EXTSCB is no longer needed since the SCBs are walked in all cases now.
* A bug fix and a couple of new modes for the meteor driver.jkh1996-03-282-94/+172
| | | | Submitted-By: Jim Lowe <james@miller.cs.uwm.edu>
* Using devfs_add_devswf() instead of devfs_add_devsw()scrappy1996-03-281-2/+2
| | | | Reviewed by: julian@freebsd.org
* Eliminate reference to ac_ipaddr in FreeBSD case.fenner1996-03-232-4/+4
|
* Fixed unsigned longs that should have been vm_offset_t.bde1996-03-193-6/+7
| | | | | | | | | | vm_offset_t is currently unsigned long but should probably be plain unsigned for i386's to match the choice of minimal types to represent for fixed-width types in Lite2. Anyway, it shouldn't be assumed to be unsigned long. I only fixed the type mismatches that were detected when I changed vm_offset_t to unsigned. Only pointer type mismatches were detected.
* If FAILSAFE is defined, then:se1996-03-111-2/+8
| | | | | | | | | | - Do not enable tagged commands by default - Probe only 1 LUN - Do not negotiate sync. transfer with CDROM drives Defining FAILSAFE will result in a driver that will tolerate marginal hardware for the price of a slight loss of performance It is intended for use in install kernels.
* Do WIDE negotiation before sync. transfer speed negotiation,se1996-03-111-15/+17
| | | | | | if a drive supports both features. Pointed out by Gerard Goudier, who knew section 5.6.23 of the SCSI-2 standard requires this order of actions ...
* Be more careful in how we set SCSICONF. It was possible for a controllergibbs1996-03-111-3/+7
| | | | set to a device id above 7 to screw up the data fifo setting.
* aic7870.c, ncr.c:gibbs1996-03-102-20/+15
| | | | | | | | | Cleanse the SCSI subsystem of its internally defined types u_int32, u_int16, u_int8, int32, int16, int8. Use the system defined *_t types instead. aic7870.c: Handle Seeprom data a little better.
* Hopefully, this will fix the problems that some people have been having withjkh1996-03-022-184/+556
| | | | | | | the S-Video input. It also has code in the driver for the meteor RGB support and some other bug fixes. I don't have a meteor RGB but I have been told that it works. Submitted by: Jim Lowe <james@miller.cs.uwm.edu>
* Remove limit of port I/O addresses to 65K, since PCI specifies 32 bitse1996-02-191-3/+5
| | | | | | | | | port addresses (even though the PC architecture doesn't support them). Add code to limit the I/O map size based on the lowest set bit of the address. This cures the problem with the BT946C only having a 16 bit map register, in voiolation of the PCI specs, without giving up the general support of >65K port regions.
* Restore two lines that were erronously deleted with the removal ofse1996-02-191-2/+4
| | | | the NCR_NO_DISCONNECT option in the previous patch.
* Make SIMPLE TAG messages the default.se1996-02-181-47/+34
| | | | Remove bogus NCR_NO_DISCONNECT option, which actually never was useful.
* Add PCI ID for older revision Buslogic 946 cardsgibbs1996-02-181-1/+3
| | | | Submitted by: greg@greg.rim.or.jp
* Add generic PCI to PCI bridge support.se1996-02-172-25/+109
| | | | Improve verbose boot messages for unidentified chips.
* Allow I/O port ranges above the standard ISA one so the PCI probe will succeed.gibbs1996-02-161-8/+11
| | | | Reviewed by: Richard J Kuhns <rjk@sparcmill.grauel.com>
* Correct the PCI ID for the Buslogic 946.gibbs1996-02-121-2/+2
|
* Clean up Ethernet drivers:wollman1996-02-065-50/+33
| | | | | | | | - fill in and use ifp->if_softc - use if_bpf rather than private cookie variables - change bpf interface to take advantage of this - call ether_ifattach() directly from Ethernet drivers - delete kludge in if_attach() that did this indirectly
* Fix METEOR_TEST_VIDEO case.jkh1996-02-051-1/+1
| | | | Submitted by: Jim Lowe <james@miller.cs.uwm.edu>
* Sync with latest Meteor and Spigot sources from James.jkh1996-02-011-72/+200
| | | | Submitted by: Jim Lowe <james@miller.cs.uwm.edu>
* Slight modification of ncr_setmaxtags: set usrtags=0 for drivesse1996-01-311-17/+16
| | | | | | | | | | | that don't announce support for command queues. SCSI_NCR_DFLT_TAGS can be specified in the kernel config file and sets the default number of tags per disk drive. A value of 0 means "no tags". Minor correction in debug messages: Values from the msg_in buffer were being printed in the msg_out trace message ...
* Fix a bunch of spelling errors in the comment fields ofmpp1996-01-305-15/+21
| | | | a bunch of system include files.
OpenPOWER on IntegriCloud