Commit Graph

2245 Commits

Author SHA1 Message Date
thorpej d44a5ae87c Remove some unneeded stuff from the gem_pci_softc. 2001-10-18 06:14:33 +00:00
thorpej c559c94a45 Add goo to fetch the MAC address from OpenFirmware on the macppc
port.  Copied from the macppc "gmac" driver, but otherwise untested.
2001-10-18 03:55:07 +00:00
thorpej 285d37822b - The GEM registers are always memory type registers. Don't use a
broken hueristic to determine memory vs. i/o (one should never make
  an assumption that the bus_space_tag_t is a pointer, as this code
  did).
- Fix the "can't map registers" error message.
- Garbage-collect some code that is not relevant to the GEM (which
  was already #if 0'd out).
- Cluster all the SPARC-specific code into one place (will be
  replaced with Properties once that is fleshed out).
2001-10-18 03:48:48 +00:00
thorpej 397a84f51a Fix the semantics of __PCI_DEV_FUNCORDER so that they're actually useful:
If __PCI_DEV_FUNCORDER is defined, don't do the song-and-dance to check if
a device is multi-function; machdep code is going to tell us exactly which
functions to probe.

Note this required changing how pci_func_devorder() works in the
sparc64 PCI machdep code; now the "curnode" is assumed to point
to the bus, rather than some function (typically 0) on the device,
just as pci_bus_devorder() makes that assumption.

All this should allow the PCI code to actually locate the second
HME device on a Sun Netra t1, which is at 3,1 -- previously, the
PCI code would have missed it because there is no device at 3,0.

(Sun deserves a brick to the head for this one -- this seems clearly
out of line with the PCI spec.)
2001-10-17 22:16:41 +00:00
jdolecek d4df209cbd Add driver for Creative Labs SBLive! EMU10000, possibly also PCI512.
Written by Yannick Montulet (thanks!), with only couple minor touches by me.
2001-10-17 18:39:41 +00:00
haya 5f75bfa4ba Move some chip initialise code into pccbb_chipinit() function. 2001-10-17 10:25:51 +00:00
tron b7ca23147b Add UDMA/100 support for SiS chipsets 645, 650 and 730. 2001-10-16 08:22:50 +00:00
tron 5858458732 Regen. 2001-10-16 08:15:01 +00:00
tron 7c4f946401 Add host bridges of SiS 645, 650 and 730 chipsets. 2001-10-16 08:14:15 +00:00
tron 40dc031852 Add missing timings for Ultra DMA modes 3 to 5 on SiS hostadapters.
Problem pointed out by IWAMOTO Toshihiro on "tech-kern@netbsd.org".
2001-10-16 08:10:24 +00:00
tron 1e022c27b4 Use UDMA/100 on SiS 735 chipset. 2001-10-14 11:21:10 +00:00
ichiro cbcfff63ec Add Intersil Prism2.5 Mini-PCI wavelan. 2001-10-13 15:00:23 +00:00
ichiro c0e7956031 regen. 2001-10-13 07:44:21 +00:00
ichiro 8afd8ee7a9 add vendor & product ID
Intersil PRISM2.5 Mini-PCI WLAN
2001-10-13 07:43:42 +00:00
tron eea6d83f4b Regen. 2001-10-11 14:31:58 +00:00
tron fa5ea802e9 Add host bridge of the SiS 735 chipset. 2001-10-11 14:30:21 +00:00
ad 08632b145a Back out previous - it causes panics. 2001-10-10 09:33:36 +00:00
mjacob c0018ebdfe The flow control registers are 16 bits wide, not 32. 2001-10-10 03:41:24 +00:00
mjacob daf0329c3c Respect QLogic's errata- read BIU_ISR even on the 2300
to see if there's an interrupt (avoids PCI parity errors
which can occur on the 2312 if you access some registers
from the host at the same time the RISC on the 2312 is
accessing them).
2001-10-06 20:33:24 +00:00
thorpej 01b2f9b5c4 Remove and unnecessary cast, and avoid a memory leak in the event
allocation of the GATT fails.
2001-10-06 02:48:50 +00:00
thorpej c2a1bef2f3 Create the Tx DMA maps with a size large enough for a jumbo Ethernet
frame.
2001-10-06 00:14:59 +00:00
thorpej 0d4d2293bb Minor tidying up of the HME driver attach:
- Print nicer-looking message.
- Use bus_space_subregion() when appropriate, rather than arithmetic
  on a bus_space_handle_t.
2001-10-05 17:49:43 +00:00
simonb f13f663c13 Regen: Minor correction to the name of the 405GP PCI bridge. 2001-10-03 12:07:08 +00:00
simonb f3706d5650 Minor correction to the name of the 405GP PCI bridge. 2001-10-03 12:05:49 +00:00
augustss 1339e88a86 Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
2001-10-03 00:04:47 +00:00
fvdl 9706e581b2 Don't map the aperture into KVA, it isn't needed. 2001-10-01 21:54:48 +00:00
fvdl 408e1d1b10 Fix bogus vdir offset calculation. 2001-10-01 14:41:09 +00:00
thorpej 4e77e1ee5f Regen; added product ID for RealTek 8139[BC]. 2001-10-01 00:28:02 +00:00
thorpej 2b02410c00 Add product ID for the RealTek 8139[BC]. 2001-10-01 00:27:33 +00:00
yamt cf2debbc86 force 0x1000 align for memory base before
calling rbus_space_alloc().
resource management may be inconsistent without it.
2001-09-30 06:32:02 +00:00
thorpej 5c2e2edf22 Regen; more corrections to Intel Gig-e product IDs. 2001-09-28 22:06:25 +00:00
thorpej 435e4031ad More corrections to Intel Gig-e product IDs. 2001-09-28 22:06:04 +00:00
chs 984d30ac45 don't depend on other headers to include sys/proc.h for us. 2001-09-28 12:36:48 +00:00
tsutsui 19e9d87b56 Include uvm/uvm_extern.h for PAGE_SIZE. 2001-09-27 15:12:30 +00:00
itojun 646869b6cd regen 2001-09-27 07:10:37 +00:00
itojun 2a47bfbf34 add 4DWAVE and SiS sound devices. 2001-09-27 07:09:27 +00:00
eeh 98ecb5b215 getprop* -> PROM_getprop* 2001-09-26 20:53:05 +00:00
bouyer 92aaf348cf Ali M5229 IDE controllers: tweak the rigth 0x79 register (the one from the
pci/isa bridge, not the one from the IDE controller).
2001-09-24 20:03:47 +00:00
eeh 1e7d8c3a11 Print out device details. 2001-09-24 04:39:40 +00:00
ad 5ed7f8b717 Save some info about the board for dpti. 2001-09-22 13:05:36 +00:00
ad ec1f68e931 Use bus_dma to get temporary I/O buffers. 2001-09-20 22:09:44 +00:00
fvdl 4d0be45902 Add message to explain failure if the internal i810 config registers
weren't found.
2001-09-20 20:00:16 +00:00
bouyer dfa5bf68d9 - Allocate control structures at attach time rather than at init time.
Avoids using bus_dmamem_alloc/bus_dmamem_map at interrupt time.
  Should fix PRs kern/13924 and kern/13979 from dive@endersgame.net
- while I'm there convert to use ether_ioctl.
2001-09-20 10:04:10 +00:00
wiz 9fa0b17629 Give initiali[sz]e all the "i"s it deserves. 2001-09-18 18:15:49 +00:00
thorpej 75fc05bc1e agp_generic_bind_memory(): Don't return NULL if we can't malloc
memory, return ENOMEM.
2001-09-16 18:33:08 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
thorpej fe8546c37d AGP registers are in memory space on the AMD-751. 2001-09-16 03:42:12 +00:00
eeh 345c4a7b0d Driver for Sun GEM gigabit ethernet, Sun ERI 10/100, and Apple GMAC. 2001-09-16 00:11:41 +00:00
chs 64c6d1d2dc a whole bunch of changes to improve performance and robustness under load:
- remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.
2001-09-15 20:36:31 +00:00
thorpej 02951c2ac6 agpopen(): check for NULL softc before dereferencing it. 2001-09-15 18:03:35 +00:00