Commit Graph

13123 Commits

Author SHA1 Message Date
bjh21 00eaefef06 When copying a block with an odd size to or from the card, be very careful
not to overrun the end of it on the host side, since that might just slip over
a page boundary and cause an embarrassing kernel panic.
2002-06-07 00:01:19 +00:00
he 33afd46155 Add newlines to the WARNING messages printed for the dynamic standby bug. 2002-06-06 17:20:50 +00:00
drochner 3db12b1095 Don't detach the mouse from the mux just because the mouse device is
opened. Too annoying and unnecessary.
2002-06-06 09:16:12 +00:00
drochner 7a79aa5e02 usability fixes for the debugger:
-cut yhe trailing '\r' from input lines so that commands are recognized
-use db_vprintf() for output in interactive mode to get the "|more" effect
-do the same setjmp() game as ddb, so we can return to the prompt
2002-06-05 17:58:33 +00:00
bouyer 10f940facc STE_CarrierSenseErrors is 8bit wide, not 16bit.
Reenable statistics interrupts, reading it as 16bit caused it to not be cleared,and thus the eventual interrupt to not be cleared (and this caused an
infinite loop in interrupt routine).
While I'm there count STE_CarrierSenseErrors as oerror (this is incremented
each time we try to send a packet and the link is down).
2002-06-05 16:27:29 +00:00
bouyer aad58d87e1 Rework transmit underrun logic:
- when a transmit underrun occurs, only reset the transmit logic. This prevents
  the link from going down at the MII level (the same logic can probably
  be used for other transmit errors)
- set the urgent threshold to half the start threshold. From experiments
  this helps a bit decreasing the number of underruns

Now that underruns don't cause the interface to stop for several seconds,
make back out the default transmit threshold to 128.
2002-06-05 15:24:31 +00:00
mjacob 787aeb4081 As per a discussion on tech-kern a while back- honor retries for
XS_SELTIMEOUT and XS_TIMEOUT errors- but only do so if the device exists
already.

Devices that are being probed won't be found via periph_lookup, so we can
use that to find if a device exists for the purposes of honoring retries.
2002-06-05 00:15:33 +00:00
martin 9ae19204d9 #if some tables and a helper function for debug output to make it
possible to compile this without ISDN debugging support.

Fixes PR kern/17161.
2002-06-04 19:51:18 +00:00
isaki c55e051ca1 Correct indent... 2002-06-04 14:02:32 +00:00
isaki ef44888b70 Correct wrong comment about factor_denom.
In case of recording, it doesn't make coding space small.
2002-06-04 13:59:23 +00:00
fvdl 96858fc8b7 AMD 8111 DMA support. 2002-06-04 08:58:20 +00:00
fvdl b76668d455 Regen. 2002-06-04 08:57:48 +00:00
fvdl c094984a55 Add AMD 8111 IDE id. 2002-06-04 08:53:47 +00:00
briggs ea51e618d6 Regen. for MPC8245 host bridge. 2002-06-03 19:53:37 +00:00
briggs 9e338db415 Add Motorola's MPC8245 (Kahlua II) host bridge. 2002-06-03 19:52:18 +00:00
bouyer 622fdb1fe6 Doh, the return of scsipi_lookup_periph() was meant to be assigned to
periph.
periph was used uninitialised, and caused a panic when the scsibus is reset
with siop or esiop, and possibly others HBA drivers.
2002-06-03 16:17:57 +00:00
jonathan 9f02dbda6b Add stanza to match and configure D-Link DFE-670 cards (a DL10022 variant).
Also print a little more info (including CIS tuples) when cards don't match,
making it a little easier to patch in entries.
2002-06-03 01:17:49 +00:00
jonathan bf7d101fb6 Regen from pcmciadevs 1.171 after adding D-link DFE-670 ethernet card. 2002-06-03 01:15:15 +00:00
jonathan 4cd89ab8cc Add device-id for D-Link DFE-670 (10/100 DL10022-like card). 2002-06-03 01:13:01 +00:00
lukem cfb25c839c make this compile again 2002-06-02 23:24:40 +00:00
wiz 36379d74b4 Typo fixes and grammar improvements in a comment. 2002-06-02 23:17:51 +00:00
seb 2c69553625 Support Titan PCI-800L, a 8 serial puc card, from PR 17140.
Reviewed/approved by veego@ and martin@.
2002-06-02 18:43:27 +00:00
seb c5ad00acc6 regen for Titan PCI-800L. 2002-06-02 18:37:25 +00:00
jmcneill 419bcc2917 Fix the mixer controls to work a bit better. 2002-06-02 18:33:06 +00:00
seb 491c3ef8b6 Add product Titan PCI-800L aka VSCom PCI-800L, a 8 serial puc card, from PR
17140.
Reviewed/approved by veego@ and martin@.
2002-06-02 18:32:11 +00:00
drochner d2b9876081 move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
enami 461e42e9ef Collect random number from AMD 768MPX power management controller. 2002-06-02 02:44:27 +00:00
gson a257b81df8 The logic in audio_poll() was incorrect in full duplex mode;
among other things, it behaved as if full-duplex audio devices
were always ready for writing.  Also commented the code in case.
This fixes PRs kern/11179 and kern/13829.
2002-06-02 02:00:30 +00:00
lukem 7026bf4ede Use SLIST_*() instead of accessing slh_first,sle_next directly.
XXX: this program currently doesn't parse macros that cross the EOL with \
(there are a couple in sys/dev/scsipi/scsi_message.h).
with that issue temporarily worked around, this change generates the
same output as the version of aicasm without this change.
2002-06-02 01:20:36 +00:00
lukem 06de426449 SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
itojun aa309c7dc2 regen 2002-06-01 21:03:37 +00:00
itojun e35096b705 new ne0 pcmcia pccard: corega EtherII PCC-TD
PR 17134, From: <fujiwara@f.pyon.org>, Kazunori@netbsd.org, Fujiwara@netbsd.org
2002-06-01 21:03:14 +00:00
bouyer 10813a14bc Remove the "set south-bridge's enable bit" code. It doens't seems to make
any difference for rev 0xc3 controllers, and hang on 0xc4 controllers.
Fixes kern/16954
2002-06-01 18:07:42 +00:00
gson ca67f8471a spl botch in midipoll() when sc->dying 2002-06-01 17:54:21 +00:00
bouyer dc66b51bca When the chip gets a transmit underrun, the driver resets the chip, which
cause the link to go down for several seconds on my Dlink DFE580-TX (quad-port
DL1002). This behavior is unacceptable, especially as the driver usually
gets several underrun at once, causing the link to be almost unaviable
for several 10s of seconds.
Bump the default transmit threshold to 1504 bytes to avoid transmit underrun.
2002-06-01 17:24:38 +00:00
bouyer 208589bfca On a Dlink DFE580-TX (DL-1002), attempting to transmit packets while the link
is down cause the chip to create an IE_UpdateStats condition which can't be
cleared, causing the driver to enter an interrupt loop.
Workaround: mask IE_UpdateStats
2002-06-01 17:20:13 +00:00
simonb 42669ab3a4 Add "__attribute__((__unused__))" to hpt374_pio, hpt374_dma and hpt374_udma. 2002-06-01 12:47:20 +00:00
thorpej c49ac7a5a6 Use __mips__ instead of mips. 2002-05-31 21:43:49 +00:00
nathanw 7dc5cba95f Regen. 2002-05-31 21:13:12 +00:00
nathanw 49331870a4 Add many Keyspan products, and distinguish the device IDs before and
after loading firmware.
2002-05-31 21:11:56 +00:00
thorpej 46b268dfef Avoid sequence point error. 2002-05-31 19:42:12 +00:00
thorpej dd82a277b7 * Add __unused___ to lmc_system_errors, since it is not used by
everything which includes if_lmcvar.h.
* #if 0 lmc_status_bits, since it's not used by anything.
2002-05-31 17:53:03 +00:00
thorpej 96e504cc78 Fix a pasto in printf arguments which resulted in the aac kernel
version being mis-reported.
2002-05-31 17:36:29 +00:00
thorpej 12af01e337 Remove an unnecessary printf argument. 2002-05-31 17:34:08 +00:00
thorpej 7173dc3334 Remove shadow decl of num_errors which exactly duplicated the file-scope
decl.
2002-05-31 17:31:15 +00:00
thorpej eb00d53595 Remove duplicate TULIP_SET/TULIP_CLR. 2002-05-31 17:27:40 +00:00
mycroft 79056950e2 Mask off extraneous bits in the RX frame status when testing it. My cards set
bit 3 in ad hoc mode.
Also, some minor constant folding.
2002-05-31 15:52:55 +00:00
christos 705e75558c regen 2002-05-31 15:38:55 +00:00
christos 03dc556078 add usr v.everything. 2002-05-31 15:38:43 +00:00
mycroft 5ca56020c7 Patch the CLKRUN enable bit on ToPIC chips. 2002-05-31 13:34:03 +00:00
mycroft f6dc1467bf Add a Nortel e-Mobility card. 2002-05-31 13:30:36 +00:00
mycroft 75612b306d Regen. 2002-05-31 13:29:35 +00:00
mycroft 216a97aba4 Add a Nortel e-Mobility card. 2002-05-31 13:29:19 +00:00
augustss 22023c8988 Some casts in printf(). 2002-05-31 10:54:34 +00:00
haya a7937db203 Add comment. 2002-05-31 09:54:52 +00:00
augustss df22d8a0f5 Add some pmppc stuff. 2002-05-31 00:27:00 +00:00
thorpej 34820075d5 Statements must follow labels. 2002-05-30 21:09:54 +00:00
someya 153f04daa9 Fix playback problem on SiS7018.
- mute the volume for interrupt channel
 - add some improvements for device initialization

but recording does not work properly.

Reported and tested by Jan Wagner <waja@cyconet.org>. Thanks.
2002-05-30 17:04:13 +00:00
drochner 34c0afbf8d implement a check whether a BAR is present at all at a given configuration
space address and use it where the mappings of the VGA card are registered
before descenting too deep into "memory" type specific code
(pci_mem_find() gets noisy if it doesn't like the register)
2002-05-30 12:06:43 +00:00
bouyer ec89a92254 When testing for a void region, use PCI_MAPREG_MEM_SIZE() for 32bit memaddr.
If the 32bit mask read is 0, wmask will be 0xffffffff00000000, and
PCI_MAPREG_MEM64_SIZE() won't make this 0.
2002-05-29 14:57:36 +00:00
martin 2a09e1c999 Nuke all useages of polled kbd controller commands when not attaching or
probing.

Make sure to not initialize the protocol more than once, see rev. 1.11 of
the old psm_intelli.c driver (this caused hangs when starting X).

Unify the "ignore garbage" behaviour (which we already did if PMS_STANDARD
protocol was used), the old intelli-driver did the same and on some scroll
mice a stream of garbage is emitted shortly after reset.
2002-05-29 09:30:35 +00:00
tron e10511905f Set initial transmit drain threshold to 1504 to avoid the problem
described in PR kern/16070. Change approved by Jason Thorpe.

XXX We'll should try to find a better adaptive scheme for the next
    NetBSD release.
2002-05-28 20:20:49 +00:00
christos c5e4481063 regen 2002-05-28 17:46:24 +00:00
christos 6ce1fe0564 add action tec 2002-05-28 17:46:10 +00:00
augustss 9660362aab Another fix in the FreeBSD part. 2002-05-28 17:45:17 +00:00
tron 30e983a763 Regen from "pcidevs". 2002-05-28 17:08:57 +00:00
tron e3e9ac1e64 Add entries for Intel i850 and i860 chipsets. 2002-05-28 17:08:19 +00:00
drochner eafdf8c95d add translations for two ASC/ASCQs which occur before
the DVD player's region code is dealt with
2002-05-28 16:40:03 +00:00
augustss 0a15c2acd4 Change DMAADDR macro slightly. 2002-05-28 12:42:38 +00:00
gson 910011f658 When audio recording was paused or dropping samples, the "outp" of the
recording ring buffer could overrun the end of the buffer.  When
recording resumed, memory after the end of the buffer would be read,
sometimes causing a system crash.
2002-05-27 17:13:14 +00:00
drochner 259cb04e6f put multisession offset code into a separate function and initialize
the p_cdsession field of partition 'a' in the default disklabel
2002-05-27 16:42:30 +00:00
drochner 9936deaa92 regen 2002-05-27 08:52:36 +00:00
drochner 67d163e234 add one more of our own products 2002-05-27 08:52:13 +00:00
tshiozak 94a6bb8164 add PLANEX GW-NS11H Wireless LAN PC Card. 2002-05-26 14:37:19 +00:00
tshiozak 7b488909a7 add PLANEX GW-NS11H Wireless LAN PC Card 2002-05-26 14:35:10 +00:00
minoura 78d97e78f0 Clear done_head in the HCCA *before* acknoledging the interrupt.
Driver lost some completed transfers under heavy loads.
2002-05-26 03:10:02 +00:00
ichiro fdb6b41ec7 regen 2002-05-25 07:32:25 +00:00
ichiro 407f8f5b2c add 21555 Non-Transparent PCI-PCI Bridge 2002-05-25 07:28:15 +00:00
christos 7db182d94d NBPG is not constant on the sparc, so don't use CPP tricks. 2002-05-24 18:10:06 +00:00
christos 0c5fed7eec Deal with the NBPG problem in a better way. 2002-05-24 15:58:06 +00:00
lukem 36bbd51aa2 Support NetMos NM9845 Quad UART and 1284 Printer port.
All 4 serial ports and parallel port seem to work.
2002-05-24 12:07:46 +00:00
lukem 863d1b7956 regen for NetMos Quad UART and 1284 Printer port 2002-05-24 11:54:22 +00:00
lukem ed8833bc78 add NetMos Quad UART and 1284 Printer port 2002-05-24 11:50:20 +00:00
bjh21 681c52938e Regen (many new podules). 2002-05-23 22:01:14 +00:00
bjh21 e3d123e4e4 Add all the product IDs from <arm/xcb.h> on RISC iX 1.2. There are several
places where they disagree with our list (and reality).  In those cases,
I've kept the old value and added a comment.  The RISC iX list stops at
ID 181 (0xb5).
2002-05-23 22:00:49 +00:00
martin 40813b3bd4 When using standard (no scroll wheel) protocol, ignore garbage between
two packets (just like the old psm.c driver did). And don't insist on the
first byte having bit 0x08 set.

This makes some odd trackball device work.

Thanks to Tyler Mitchell for reporting and testing.
2002-05-23 19:00:28 +00:00
leo c80fa51681 Not so fast... Add a bit of comment to the previous change. 2002-05-23 15:12:59 +00:00
leo 2ac118b51f Treat the "hdfd" (Atari/Hades floppy) like all the other "fd"s. OK-ed by
Greg Oster.
2002-05-23 15:03:33 +00:00
jmc deed1e1714 Fix bug in the way the config_found loop runs. Passing NULL doesn't work well. 2002-05-23 00:10:46 +00:00
bjh21 f402b4faa2 Regen (sorting). 2002-05-22 23:46:53 +00:00
bjh21 2a1092efaa Sort the Wild Vision parallel card into order. 2002-05-22 23:46:36 +00:00
bjh21 1e170f49cd Regen (merge of RISC iX manufacturers list). 2002-05-22 23:27:16 +00:00
bjh21 35010db489 Merge in the list of manufacturer IDs from <arm/xcb.h> on RISC iX 1.2.
Where they differ with what we've had historically, I've kept our value
and added a comment.  The RISC iX list stops at 65 (0x41).
2002-05-22 23:23:23 +00:00
bjh21 205186731b Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers.  This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus.  Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
2002-05-22 22:43:13 +00:00
bjh21 6d59ad5ec5 Add podule_readcmos(), for getting the CMOS configuration for a podule.
Only implemented on acorn26 for now, but the acorn32 implementation should
be pretty much identical.
2002-05-22 22:13:12 +00:00
wiz f7d76b1062 bcmp -> memcmp. 2002-05-22 16:03:14 +00:00
wiz 45bbb2368f bcopy -> memcpy. Reviewed by Greg Oster. 2002-05-22 15:40:47 +00:00
matt 077fee836c Add code to distinguish between apple and sun gem cores. 2002-05-21 19:58:24 +00:00
martin 2fe85a6623 Uniformly pass a "struct isdn_l3_driver *" through layer 2, so we
do not have to search for that driver later while we already knew it
at layer 1.
2002-05-21 10:31:10 +00:00
augustss 54bb400a18 Add a driver for the IBM CPC700 chip. This chip is a host bridge for
PowerPC and provides a PCI-host bridge, interrupt controller, two com ports,
two IIC ports, a timer, and a DRAM controller.
The driver supports PCI, interrupts and com ports.
2002-05-21 02:58:25 +00:00
augustss 1c66d18529 Make it possible to override the way register access is done.
This is needed for some really screwball attachments of the CS8900.
2002-05-21 02:47:04 +00:00
mycroft 44024682c7 The FIX_RESUME_BUG hack does not work, so remove it.
Also, attempt to clarify the message slightly when updating the EEPROM.
2002-05-20 15:23:01 +00:00
thorpej 7f2c33ee8b Add another Linksys card. 2002-05-20 00:51:29 +00:00
bjh21 b741178a9b Regen: RISC Developments IDE, FaxPack. 2002-05-19 22:34:07 +00:00
bjh21 b6c3ea4d91 Add a few Wakefield acquisitions:
Computer Concepts FaxPack
RISC Developments 8-bit IDE interface
Note about Oak EtherO card, which seems to share an ID with their SCSI card.
2002-05-19 22:29:57 +00:00
bouyer 953ad0720e Add support for HPT374. Submited by Matthew Rezny in kern/16897, with
minor adjustements by me.
2002-05-19 17:40:46 +00:00
bouyer 5cf2b73fb8 Regen: add HPT372 and 74 PCI IDE controllers. 2002-05-19 16:02:44 +00:00
bouyer 503b19427a Add HPT372 and 74 PCI IDE controllers. 2002-05-19 16:00:19 +00:00
augustss 4bc0b333ea Update dma memory access API a little. 2002-05-19 06:24:30 +00:00
augustss 894da75819 Regen. 2002-05-19 06:20:01 +00:00
augustss 4b2bf1316d Another mouse. 2002-05-19 06:13:29 +00:00
sommerfeld 404be58a8d Regen 2002-05-19 00:19:22 +00:00
sommerfeld 889b8b80d2 Some E7500 device ids 2002-05-19 00:17:34 +00:00
sommerfeld d7135de9ea Regen 2002-05-19 00:01:29 +00:00
sommerfeld 11aa3c6a28 Fortunately for us, all interrupt controllers are not 8259's 2002-05-19 00:01:09 +00:00
sommerfeld 60cfb93a0f Some P64H2 device ids 2002-05-18 23:58:00 +00:00
sommerfeld ce6cc5672c Add "pa_rawintrpin" containing unswizzled interrupt pin to pci_attach_args. 2002-05-18 21:40:41 +00:00
ad d7e512df18 - Use write barriers.
- NBPG -> PAGE_SIZE.
2002-05-18 20:59:20 +00:00
sommerfeld 314ef13c23 In pci_probe_device(), correct test for whether the device is behind a
pci-pci bridge (and thus needs its interrupts "swizzled").

Formerly, pci_probe_device() assumed pci busses other than bus zero
were bridged; however, much recent x86 hardware supports multiple
primary pci busses differently -- there is a system-wide bus numbering
scheme.  Now, we instead look at the (newly introduced) sc_bridgetag
value in the parent bus to figure out if there's a ppb or equivalent
in the way.

This fixed at least one case where the i386 MP branch gets interrupt
mapping wrong.
2002-05-18 18:14:11 +00:00
bouyer af09484589 Be more verbose when returning XS_DRIVER_STUFFUP 2002-05-18 16:09:43 +00:00
kent 820aca767e USB_ATTACH: Initialize sc_plachan.altidx and sc_recchan.altidx with -1. 2002-05-18 15:14:39 +00:00
bouyer 29270413af If the data len if not a multiple of 2 bytes, force PIO mode. DMA can't
deal with such xfers, and can wedge the system with some controllers.
It's a bug to request such xfers for ATAPI, but as the request may come
from userland we have to protect against it.
2002-05-18 14:49:55 +00:00
matt 77820698c6 Add lfmiop (LSILogic Fusion-MPT I/O Processor) placeholders for
driver to added latter.
2002-05-18 07:23:04 +00:00
matt cad72c184d Regen. 2002-05-18 07:19:41 +00:00
matt 01b871fa50 Add SYMBIOS FC9[12]9 and 1030R 2002-05-18 07:19:16 +00:00
mjacob 7aac86133e Pointy hat to me on the last delta. 2002-05-18 00:48:11 +00:00
martin bdd46f7081 (Mostly) backout previous, with some slight modifications.
Restore the reset thread, to make resetting the interface possible while
not blocking interrupts.
Make sure to throw away garbage input while the reset thread is at work
(by setting sc_enabled a bit later).
Issue a PMS_RESET command when resetting to address PR 16788.
2002-05-17 22:49:48 +00:00
mjacob a14da6673f Replicate change that Matt Thomas made in isp_pci- if we get ENOMEM/EAGAIN
in bus_dmamap_load, return CMD_EAGAIN rather than just make the command dead.
2002-05-17 19:06:24 +00:00
mjacob c3514c8f6d Slight touchup on last change- make sure HBA_BOTCH is set (just in case
somebody at a different level does the wrong thing) on ENOMEM/EAGAIN returns
from loading DMA.
2002-05-17 19:05:08 +00:00
mjacob 16fa96cfc8 Give XS_DRIVER_STUFFUP a case all by itself. 2002-05-17 18:56:05 +00:00
mjacob c2d194880d Fix seveeral issues- but the most important of which is that we have
to check if we get a RQCS_DATA_UNDERRUN - if we're an FC card, we may
not have RQCS_RU set- if it isn't set, we just lost a DATA XFR IU in the
middle of the exchange. In this case, we have to bomb out the whole xfer.
We had been getting silent data corruption before.
2002-05-17 18:49:42 +00:00
wiz 070bb0af6f Tokens after #else are ignored, which is not the intention here. 2002-05-17 12:44:45 +00:00
groo a54b0bba2e Regen. 2002-05-17 01:07:53 +00:00
groo ec845de24e Add a bunch of Inside Out Networks devices. 2002-05-17 01:07:17 +00:00
thorpej 64c6407d7b Garbage-collect the empty-for-years "su" device. 2002-05-16 02:59:57 +00:00
thorpej f4cc1100b0 Don't use a 2-dimensional array for the channel's periph table. Instead,
hash the target and lun together and use a hash table.  This will be
necessary in order to support very large (64-bit) LUN number spaces.
2002-05-16 02:54:20 +00:00
thorpej 4daab7072a Don't access a scsipi channel's periph table directly; use
scsipi_lookup_periph().
2002-05-16 02:50:53 +00:00
thorpej 86b4df33e7 Make sure pa.pa_bus is initialized. (Thanks, uwe!) 2002-05-16 01:03:05 +00:00
thorpej 204183c0fa * Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
2002-05-16 01:01:28 +00:00
matt 496a3cb868 Let's put a s = splnet(); to match the splx(s); already in the routine.
(yes, we were doing an splx with an uninitialized variable).
2002-05-15 23:51:49 +00:00
matt 1f4c6f5868 Regen. 2002-05-15 22:48:42 +00:00
matt 0bfea741e8 Correct/add more PMC-Sierra PHYs 2002-05-15 22:48:17 +00:00
matt 57752d8c7f Regen. 2002-05-15 21:25:28 +00:00
matt 5a4d71be86 Add another PMC-SIERRA phy 2002-05-15 21:24:59 +00:00
matt a61a41b6b0 Only enable detailed evcnts if GEM_COUNTERS is defined. But always count
interrupts.
2002-05-15 21:05:23 +00:00
thorpej dada8613e1 Let machine-dependent code specify how to enumerate the bus.
Currently, everyone uses pci_enumerate_bus_generic().
2002-05-15 19:23:51 +00:00
thorpej 40116f53dd Put back __PCI_BUS_DEVORDER for now. 2002-05-15 18:39:47 +00:00
thorpej 7c86eb62bc Split the code that enumerates the PCI bus and that actually probes
for a device into two functions:

* pci_probe_device() actually probes/attaches the device specified
  by the provide pcitag_t.

* pci_enumerate_bus() enumerates the bus, and calls pci_probe_device()
  for each device on the bus.  A pci_enumerate_bus_generic() is provided
  which implements the old method of doing this: If something found at
  dev0/func0, determine number of functions and probe each one.

  Machine-dependent code will be able to specify the bus enumeration
  routine in the future.
2002-05-15 18:13:00 +00:00
augustss b058cf77d2 Adapt to new bridge name. 2002-05-15 14:15:17 +00:00
augustss 437ddd4f05 Regen. 2002-05-15 14:14:57 +00:00