Commit Graph

49749 Commits

Author SHA1 Message Date
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
yamt
4242cee2bd make ugen use updated frlengths. 2001-09-16 18:06:32 +00:00
matt
544880621b Add cdev_decl for new devices in conf.c 2001-09-16 17:41:28 +00:00
matt
ec78dd0fce Add missing devices (IOP,MLX,MLY,LD), PCI, stub AGP, ... 2001-09-16 17:40:40 +00:00
matt
d75fe4fc1e Fix .type which uses wrong symbol name. 2001-09-16 17:38:08 +00:00
wiz
55fbb5ff57 Grammar improvements in comments. 2001-09-16 16:40:44 +00:00
wiz
456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
uch
6a9bbffc4d rearrange struct platform@sysconf.h suitable for hpcmips.
overhaul hpcmips/hpcmips/. no actual changes.
2001-09-16 15:45:42 +00:00
bjh21
33d596bef8 Add support for incoming IP broadcast packets. The protocol for this is
worked out by observing RISC iX's behaviour, so it may be technically
wrong.  The only implementations of IP-over-Econet for which I've got
sources don't support broadcasts.

Tested using broadcast ping from RISC iX to NetBSD, and using rwhod.
2001-09-16 15:08:39 +00:00
chs
9699742484 make LFS work again. 2001-09-16 13:57:56 +00:00
jdolecek
68aacb8f70 add softdep_reinitialize() stub 2001-09-16 13:51:45 +00:00
bjh21
7763bd3d61 Crude hack to ensure that if a soft-interrupt handler schedules a soft
interrupt, the second handler gets called when the first returns.
2001-09-16 12:58:53 +00:00
pooka
4d3a8df544 fix tyop (literally)
clockctlh. -> clockctl.h
2001-09-16 12:52:34 +00:00
ragge
bed9e93ceb #define __HAVE_GENERIC_SOFT_INTERRUPTS for netisr_dispatch.h. This is
already defined in machine/types.h, but that file cannot be included
in an assembly file.
2001-09-16 12:51:03 +00:00
bjh21
0f810d8948 eco_input():
Use m_copydata() to preserve the Econet header, so we don't depend on
  notionally-unused areas of an mbuf remaining untouched.
  Check that ARP-over-Econet requests are exactly eight bytes long.
  Use m_pullup() before trusting mtod().

Between them, these make reception of unicast ARP responses work properly.
2001-09-16 12:16:50 +00:00
jdolecek
901ba4babe remove unused defines; they duplicate appropriate defines from
<dev/ic/ncr53c9xreg.h> anyway
2001-09-16 10:39:10 +00:00
jmc
b16bfaf57b Add prototype for ntp_adjtime1 2001-09-16 09:55:52 +00:00
jmc
87a006a7de Fix issues areound compilation errors (ntv is a pointer in adjtime1 and needs
-> rather than . access and adjtime1 needs the syscall args passed in)
2001-09-16 09:55:26 +00:00
jmc
5f4c074523 Re-alphabetize list 2001-09-16 09:52:08 +00:00
manu
531c050261 Added missing include for clockctl.h 2001-09-16 09:00:42 +00:00
chris
244c9d9d95 Add the first tweak from PR 12364. Don't switch the flush block on an SA, as it makes second and subsequent flushes less efficient. The other tweaks are already committed. 2001-09-16 08:51:17 +00:00
martin
7ac197f6e6 Fix typo in comment. 2001-09-16 08:49:50 +00:00
manu
dbf45befa3 Added the clockctl pseudodevice driver 2001-09-16 07:33:31 +00:00
manu
24838b2b54 Enabled the clockctl device for macppc, major 61 2001-09-16 07:21:32 +00:00
manu
a7455445c4 Added the clockctl device 2001-09-16 07:20:29 +00:00
manu
3d54fc0e8a Added prototypes declarations for lower part of root-only time-related
system calls. This is the the clockctl pseudosriver
2001-09-16 07:14:15 +00:00
manu
5a8892e22d This is the clockctl pseudodevice. It gives non root users access to root-only
time-related system calls through ioctls. For instance, if user daemon is able
to write to /dev/clockctl, then it is able to use the CLOCKCTL_SETTIMEOFDAY
ioctl on it, which will be equivalent to a settimeofday.
Approved by Christos
2001-09-16 06:53:54 +00:00
manu
adb22920bc Split root-only time-related system calls so that we have an upper part, that
checks root privs, and a lower part that does the actual job. The lower part
will be called by the upcoming clockctl driver. Approved by Christos
Also fixed a few cosmetic things
2001-09-16 06:50:06 +00:00
chs
1661137341 it's perfectly legal for pmap_extract() on the kernel pmap to not find
anything mapped there, even though it never used to happen.  with today's
other changes it happens a lot now, so remove the debug check for it.
2001-09-16 05:40:46 +00:00
uch
961880b501 ANSIfy, KNF. 2001-09-16 05:32:18 +00:00
thorpej
e9d1fccd30 BWX-addressable space is aways linear, so always allow BUS_SPACE_MAP_LINEAR
requests to succeed (and ignore BUS_SPACE_MAP_PREFETCHABLE, since it makes
no difference in BWX-addressable space).
2001-09-16 03:50:01 +00:00
thorpej
fe8546c37d AGP registers are in memory space on the AMD-751. 2001-09-16 03:42:12 +00:00
tsutsui
831524d3c1 Wrap some declarations with #ifdef _KERNEL and #ifndef _LOCORE . 2001-09-16 03:20:01 +00:00
thorpej
79ae830243 Add AGP support (oops, forgot to commit this file with the last batch). 2001-09-16 02:09:47 +00:00
eeh
d123f46864 Enable GEM, USB and Firewire drivers. 2001-09-16 00:14:35 +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
bjh21
56536d5190 econet_inputframe: Check the header of each frame, and its length, to ensure
it looks like what we expect.  This should help detect frames garbled by the
interface driver.
2001-09-15 23:03:11 +00:00
chs
3638545406 move include of header only needed for kernel down inside ifdef _KENREL. 2001-09-15 22:44:09 +00:00
chs
5f5ac77eff add a forward decl for struct vm_page. 2001-09-15 22:38:40 +00:00
chs
099a6b5258 interfaces and structures used by new genfs_{get,put}pages(). 2001-09-15 21:33:05 +00:00
chs
02464e8394 bump to 1.5Y: vfs_reinit, massive UVM/UBC/filesystem changes. 2001-09-15 20:48:27 +00:00
chs
d9faf4d4e7 regen 2001-09-15 20:37:36 +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
uch
80d8d09cd7 switch from splvec to ipl_sr_bits. 2001-09-15 19:51:38 +00:00
mrg
002ddf2283 in pci_conf_read() and pci_conf_write(), convert all printf()'s to only
occur if SPDB_CONF (and hence DEBUG).  also convert the panic in
pci_conf_write() to a SPDB_CONF warning and a return.

this cleans up pcictl(8) support.
2001-09-15 19:32:14 +00:00
chs
3fb05f05f8 use a for loop instead of goto. 2001-09-15 18:20:53 +00:00
thorpej
02951c2ac6 agpopen(): check for NULL softc before dereferencing it. 2001-09-15 18:03:35 +00:00
mrg
9680ade50a add coda (untested; same cdev number as sparc) and pci (tested). 2001-09-15 17:51:02 +00:00
bjh21
91dae8ca83 Add minimal IP-over-Econet support and a load of bug-fixes. I can ping,
unreliably, between my RISC iX and NetBSD boxes with this.  There's a lot
of work to go before it's solid, though.
2001-09-15 17:27:24 +00:00
yamt
1f460cfc38 make it compile when defined(USB_DEBUG)&&defined(SCSIPI_DEBUG)&&!defined(SCSIDEBUG) 2001-09-15 16:47:41 +00:00
chs
5d3eefe245 use pools for allocating most softdep datastructures. since we want to
allocate memory from kernel_map but some of the objects are freed from
interrupt context, we put objects on a queue instead of freeing them
immediately.  then in softdep_process_worklist() (which is called at
least once per second from the syncer), we process that queue and
free all the objects.  allocating from kernel_map instead of from kmem_map
allows us to have a much larger number of softdeps pending even in
configurations where kmem_map is relatively small.
2001-09-15 16:33:53 +00:00
yamt
46f9dd9228 correct debug messages. 2001-09-15 16:16:27 +00:00
chs
adf5d360a7 add a new VFS op, vfs_reinit, which is called when desiredvnodes is
adjusted via sysctl.  file systems that have hash tables which are
sized based on the value of this variable now resize those hash tables
using the new value.  the max number of FFS softdeps is also recalculated.

convert various file systems to use the <sys/queue.h> macros for
their hash tables.
2001-09-15 16:12:54 +00:00
uch
17d54b69e0 remove unused font_clB8x8_data[]. 2001-09-15 15:27:59 +00:00
uch
ba1ef3e899 ANSIfy. 2001-09-15 15:04:45 +00:00
uch
c04a1143f0 remove unneeded #include 2001-09-15 14:08:15 +00:00
chris
b9335fd2c8 Regen 2001-09-15 13:13:53 +00:00
chris
f80b0e499b Add voodoo 4/5 entry for 3DFX. 2001-09-15 13:11:42 +00:00
drochner
9ac7c1121f normalize error message if agp_map_aperture() fails 2001-09-15 13:01:44 +00:00
uch
58f851eeb5 ANSIfy, KNF, change my copyright. 2001-09-15 12:47:04 +00:00
uch
7148cab49a ANSIfy, KNF. 2001-09-15 11:13:20 +00:00
eeh
1007095edd Only drop into the debuger if SDB_DDB is set. 2001-09-15 07:13:40 +00:00
eeh
984030b0ca Fix locking problem. 2001-09-15 07:12:22 +00:00
eeh
a7283de29c Be a bit more elaborate with UE DMA errors. 2001-09-15 07:10:04 +00:00
eeh
388726b340 Added iommu_extract() for debug purposes.
Anyone caught using it for anything other than debug will be shot.
2001-09-15 06:55:50 +00:00
thorpej
17d975073d Oops, don't need to fill in pcibus_attach_args twice. 2001-09-15 04:50:59 +00:00
thorpej
fe5ada1fcc Add PCI and AGP devices. 2001-09-15 04:40:21 +00:00
thorpej
927debe92b Attach "agp" to the AMD-751 PCI host controller (Alpha UP1000/UP1100). 2001-09-15 04:33:37 +00:00
thorpej
6658cbc629 Only filter out the PCI_ID_REG in irongate_conf_read(). 2001-09-15 04:31:40 +00:00
thorpej
e3d4f375aa Give each AGP controller its own attribute, and let the "agpbus"
device (rather, the device that carries that attribute) also
carry one or more attributes indicating which type of controller
it might be.

This will allow systems that might have AGP, but would never have
e.g. an Intel PCI-Host bridge, to trim out code that won't be used.
2001-09-15 01:32:10 +00:00
wdk
7e9d52fd89 Remove unused extern 2001-09-15 01:19:38 +00:00
wdk
d9c3de97f0 Add bus_dma hooks for ISA Bus.
ISA bus option doesn't support DMA on the Magnum 3000 series, but other
models such as the M/120 do support it.
2001-09-15 01:17:47 +00:00
wdk
4fbe1c7977 Add lpt device 2001-09-15 01:11:02 +00:00
thorpej
8f077d92cc Move the AGP device declaration stuff into files.agp. 2001-09-15 01:10:09 +00:00
thorpej
c1e6d1c91f Use bus_space_mmap() to mmap the aperture. 2001-09-15 00:52:15 +00:00
wdk
919892c3c4 bus_space_mmap support based on -arc implementation 2001-09-15 00:49:53 +00:00
wdk
5b22c13d90 spllpt() for ISA Bus printer support 2001-09-15 00:46:13 +00:00
thorpej
0019ea5ce6 Clean up the AGP match/attach code somewhat. 2001-09-15 00:24:59 +00:00
nathanw
718551d644 Change all instances of "[e]isa* at foo?" to "[e]isa0 at foo?".
This prevents attaching multiple [E]ISA buses, which we don't support
(Is there any such thing to support? I'm skeptical) and avoids the
"panic: isaattach: ISA bus already seen" that occurs on some laptops
with docking stations and EISA boxes. Since there is only one [E]ISA bus,
logically, the ISA device probe will still find devices on the
docking station.

This does not address the problem of inserting or removing the docking station
at runtime.

Relevant PRs: kern/6544, port-i386/10392, kern/11627, kern/13557,
install/13865.
2001-09-14 21:44:21 +00:00
nathanw
958ea7b111 Add the PCI device. 2001-09-14 21:14:08 +00:00
nathanw
32b0166603 Return ~0 for all config space reads on devices < 11 on the primary bus,
rather than returning ~0 for PCI_ID_REG and panicing otherwise.
2001-09-14 21:04:58 +00:00
thorpej
f23828cddd Don't declare intrhand[] here -- that's taken care of in intr.c. 2001-09-14 19:18:13 +00:00
jdolecek
7f5706b514 fix indentation 2001-09-14 18:29:08 +00:00
uch
1877683f2b HITACHI PERSONA keymap. patch by KIYOHARA Takashi. 2001-09-14 17:22:52 +00:00
uch
a902597034 debug printf change. 2001-09-14 17:12:43 +00:00
uch
a970042213 HITACHI PERSONA keyboard support. patch by KIYOHARA Takashi. 2001-09-14 17:11:51 +00:00
thorpej
915af95ac0 Gather information about the mappable regions of the card at
attach time.  Allow access to these regions in vga_pci_mmap().

Note: we also have to allow access to the legacy ISA "hole" in
vga_pci_mmap(), since the X server needs to be able to read
the legacy BIOS on many cards.

XXX Need to address the PCI Expansion ROM.

Based on changes from Simon Burge <simonb@wasabisystems.com>.
2001-09-14 16:54:20 +00:00
martin
6f67510515 Give the cards a bit more time for initialization (closes PR 13947)
and add product IDs for two 3C509 TP variants (closes PR 13948).
Both changes from Christian Groessler.
2001-09-14 13:46:42 +00:00
martin
ffd70ffedb Add product IDs for 3com 3C509 TP cards.
From Christian Groessler in PR 13948.
2001-09-14 13:41:29 +00:00
drochner
9771bc6656 -plug some resource leaks
-don't clear memory ranges on "release"

The X server survives a screen switch now.
2001-09-14 12:09:14 +00:00
drochner
f53f5d923d make the hardware cursor work 2001-09-14 12:05:03 +00:00
ad
6e9cae3be0 Zero out uninitalized fields in the freshly allocated zs_chanstate. 2001-09-14 11:58:39 +00:00
msaitoh
9cd1fceecc remove obsolete file 2001-09-14 11:39:39 +00:00
thorpej
5b09c93a50 Add ioctl and mmap entry points for PCI VGA. ioctl provides
passthrough for PCI config space read/write.  mmap currently
returns error (to be addressed in a future revision).
2001-09-14 06:46:08 +00:00
simonb
999cfd0c61 Fix tyop. 2001-09-14 06:09:42 +00:00
thorpej
b9fffe1967 Allow bus front-end to provide both ioctl and mmap entry points,
and also the wsdisplay type.

Based on changes from Simon Burge <simonb@wasabisystems.com>.
2001-09-14 01:10:11 +00:00
briggs
c477d3ad28 Define __BUS_SPACE_HAS_STREAM_METHODS since the functions are there. Noted
on tech-kern & port-mac68k by "John Ruschmeyer" <jruschme@mac.com>.
2001-09-14 00:58:08 +00:00
chris
5cb5484ce3 Sprinkle some static and inline into a couple of functions. Remove dead entries from pmap.h. 2001-09-13 23:56:01 +00:00
eeh
266e77d773 Define SYSDIR if not already defined. 2001-09-13 23:19:59 +00:00
chris
5695ad388d Update pmap_clearbit to flush the cache if the area is being made readonly. Also only do this and the tlb flush if the pmap is the current pmap. 2001-09-13 22:45:23 +00:00