Commit Graph

36940 Commits

Author SHA1 Message Date
augustss
0a425e1f3d Generate an error message if starting a transfer fails. 2000-04-02 21:25:41 +00:00
thorpej
2bc5adb20e Instead of checking vm_physmem[<physseg>].pgs to determine if
uvm_page_init() has completed, add a boolean uvm.page_init_done,
and test against that.  Use this same boolean (rather than
pmap_initialized) in pmap_growkernel() to determine if we are
being called via uvm_page_init() to grow the kernel address space.

This fixes a problem on some i386 configurations where pmap_init()
itself was needing to have the kernel page table grown, and since
pmap_initialized was not yet set to TRUE, pmap_growkernel() was
choosing the wrong code path.

Fix tested by Havard Eidnes.
2000-04-02 20:39:14 +00:00
thorpej
d8be1024c1 Make this compile again after the callout changes. 2000-04-02 19:54:29 +00:00
mycroft
8aeb8df354 Add a flag to tell whether a MAC address was actually found in the CIS.
XXX This whole piece of code should go away ASAP.  We should use a callback
as in the PCMCIA code.  In fact, we should use the PCMCIA code...
2000-04-02 19:11:37 +00:00
thorpej
dc680eb373 Slight correction to last: really only do it if it's a 21142 or 21143. 2000-04-02 19:02:34 +00:00
nathanw
f5b5bbbf21 Add code to read and write bt463-style ramdacs; pick ramdac interface
functions based on type returned from tga_getconf().
Adapt to change in ramdac interface.
Fix race condition in tga_sched_update().
Make tga_sched_update() work before interrupts are enabled.
2000-04-02 19:01:11 +00:00
nathanw
bc3260fcb0 Restore ramdac-type field to TGA configuration structure. 2000-04-02 18:59:32 +00:00
nathanw
c0a4c9e67d Move bt463 code to dev/ic and adapt to the new ramdac interface.
Set default window type to 24-bit truecolor.
Correctly set pseudocolor mode.
2000-04-02 18:57:36 +00:00
nathanw
c66f54d73d Adapt to change in ramdac interface. 2000-04-02 18:55:01 +00:00
nathanw
2b4ac6a7b9 Add ramdac_register() to interface structure. 2000-04-02 18:54:33 +00:00
mycroft
e70fd4b33c During the socket probe, read the ident register twice.
I don't understand why, but sometimes the clone chips in hpcmips boxes read
all-0s the first time.
2000-04-02 18:29:14 +00:00
augustss
7246364f07 With SCSIVERBOSE, only print sense data if there actually is a problem. 2000-04-02 17:58:17 +00:00
augustss
7797648425 Change the initial field in struct ata_atapi_attach and struct scsipi_link
slightly to allow scsibus and atapibus to attach to the same device.
Furthermore, only attach a scsibus when the bus type is BUS_SCSI.
2000-04-02 17:25:52 +00:00
mycroft
229fcf5bbe When using MII on 2114[23] chips, zero the SIA TXRX register to disable the
internal Nway engine.  This fixed a major performance problem.
Thanks to Matt Thomas for pointing this out.
2000-04-02 17:23:33 +00:00
minoura
78b105698a Move dl* function definitions to libc on ELF.
Based on the patch supplied by Takuya Shiozaki <tshiozak@astec.co.jp>.
See http://mail-index.netbsd.org/tech-userlevel/2000/02/23/0000.html.
2000-04-02 15:35:47 +00:00
tsubai
b18b370715 Make sure color rgb:0/0/0 is black. 2000-04-02 12:53:05 +00:00
tsubai
7df13bfec7 Enable wdc1 (needed on StarMax). 2000-04-02 12:36:38 +00:00
tsubai
e352cada4b Make this compile again. 2000-04-02 12:03:04 +00:00
tsutsui
fa07b81e43 Make to match also MII_OUI_DAVICOM.
(This seems to work, but any GENERIC does not have dmphy...)
2000-04-02 03:06:19 +00:00
enami
28d49dce4e Add missing protect from disk interrupt while calling scsipi_free_xs. 2000-04-02 03:05:55 +00:00
itojun
f564201ae9 sync with ata driver change (dma_start args). 2000-04-02 02:07:52 +00:00
is
389ed19c62 Start to define an INSTALL kernel. 2000-04-01 20:21:27 +00:00
soren
5932e9f765 Match new prototype of pciide_dma_start in pciide.c. 2000-04-01 20:17:12 +00:00
bouyer
3b69a8011b make it compile again after ATAPI changes. 2000-04-01 17:52:14 +00:00
bouyer
b2cd1f029a Bump delay() from 100 to 1000000 before attempting a IDENTIFY just after a
reset - solves a problem reported by cpg@aladdin.de.
2000-04-01 14:50:32 +00:00
tsutsui
ef28a8deb8 Typo. (callout_rest -> callout_reset) 2000-04-01 14:41:13 +00:00
tsutsui
294b27df46 Fix typo. (s/sc_adapter/sc_link/) 2000-04-01 14:38:42 +00:00
bouyer
26f6c9a9cf - DMA code cleanup: pciide_dma_finish() doesn't stop/unload the current DMA op
if an IRQ was not detected, unless the force flag was given. Use this to
  detect if the IRQ was for us (closer to shared IRQ for controllers which
  don't have their own IRQ handler in pciide.c) and to poll for DMA xfer.
  Also makes the timeout recovery code simpler.
- ATAPI cleanup: don't call controller-specific functions from atapiconf.c
  (wdc_*), so that it's possible to attach an atapibus to something else
  than a wdc/pciide (Hi Lennart :).
  Overload struct scsi_adapter with struct atapi_adapter, defined
  as struct scsi_adapter + atapi-specific callbacks. scsipi_link still points
  to an scsi_adapter, atapi code casts it to atapi_adapter if needed.
  Move atapi_softc to atapiconf.h so that it can be used by the underlying
  controller code (e.g. atapi_wdc.c).
  Add an atapi-specific callback *atapi_probedev(), which probe a drive
  in a controller-specific way, allocate the sc_link and fills in the
  ataparams if needed. It then calls atapi_probedev() (from atapiconf.c)
  to do the generic initialisations and attach the device.
- While I'm there merge and centralise the state definitions in atavar.h.
  It should now be possible to use a common ata/atapi routine to set the
  drive's modes (will do later).
2000-04-01 14:32:22 +00:00
tsutsui
3d917bfc34 Add OVERLAY and RAID_AUTOCONFIG. (sync with GENERIC) 2000-04-01 14:00:29 +00:00
augustss
7311856f29 Add a delay before reading the number of ports from the controller to
avoid getting 0 from it.
2000-04-01 09:27:35 +00:00
takemura
9afabc7add Recompile binaries for Mobile Pro 700. 2000-04-01 02:37:23 +00:00
castor
5e29a96b48 Make standalone in_cksum work on little-endian machines, too, courtesy of
Jeff Smith, <jeffs@geocast.com>.
2000-03-31 19:55:09 +00:00
ragge
fe43e9f08f Fix spelling error. 2000-03-31 18:40:58 +00:00
soren
0551ccb4d4 Typo. 2000-03-31 15:00:49 +00:00
soren
278498c05f Some cleanups. 2000-03-31 14:51:49 +00:00
jdolecek
c42f28d24a Since last duplicate prototype cleanup, we need to include
<netinet/ip_mroute.h> to get ip_mforward() prototype if MROUTING
is defined.
2000-03-31 14:31:03 +00:00
jdolecek
a59a99b6dc Slighly improve previous - only include <netinet/ip_mroute.h> if MROUTING
is defined.
2000-03-31 14:27:17 +00:00
tsutsui
8c8679f1ac Remove declaration of kd_rom_intr(). It is not needed on sun3. 2000-03-31 14:24:03 +00:00
tsutsui
49e70b6653 Add include <vm/vm.h> and <uvm/uvm_extern.h> for
declaration of uvm_swapin(), which is no longer in <sys/proc.h>.
2000-03-31 14:18:53 +00:00
hubertf
ca4c16d936 Note that the Handspring Visor is a Palmpilot compatible PDA. 2000-03-31 13:08:01 +00:00
jun
657c5b4130 add Mobile Pro 700 2000-03-31 13:01:17 +00:00
pk
b6a73eb3a1 Make this compile without RASTERCONSOLE too. 2000-03-31 12:58:54 +00:00
jun
ad4db7ca62 add NEC Mobile Pro 700 2000-03-31 12:53:06 +00:00
jun
2c3c66ea0c regen. 2000-03-31 12:46:23 +00:00
soda
18dbe75d6e cancel previous change, and add a comment about it.
$INCS variable is introduced by cgd to export kernel headers which
are needed from userland. In other words, $INC should only have
headers for kernel <-> userland programming interface.
Headers for kernel internal implementation should not be exported
to userland.
2000-03-31 11:44:05 +00:00
jdolecek
c2acbd102b include <netinet/ip_mroute.h> for ip_mforward() - needed after
last duplicate prototype sweep (prototype for ip_mforward() used to be in <netinet/ip_var.h>)
2000-03-31 08:34:20 +00:00
scottr
4d23f7686d Attach all displays, keyboards, and mice, not just the first
ones found.
2000-03-31 08:27:43 +00:00
tsarna
56e25c18bb Add and enable auvia 2000-03-31 04:47:52 +00:00
tsarna
07dea214dc Add auvia, a driver for the integrated AC'97 audio on the VIA VT82C686A
southbridge.

Tested on a ASUS K7M (w/ AD1881 codec). Please report any problems.
2000-03-31 04:45:28 +00:00
oster
cf0b47bd0e Minor cleanup of unneeded verbosity. 2000-03-31 02:05:24 +00:00
oster
cd61979606 Print out the 'root' status of a RAID set during autoconfiguration. 2000-03-31 01:20:43 +00:00
soren
fab7d466f3 Add little to-do list. 2000-03-30 22:14:17 +00:00
soren
70abbd3c24 Crude kernel installer. 2000-03-30 21:46:16 +00:00
soren
e204cb3eb9 machine/cpu.h includes mips/cpuregs.h. 2000-03-30 21:37:51 +00:00
soren
80e6d43253 Add asm.h like other ports. 2000-03-30 21:33:30 +00:00
soren
726573bf96 Match contents. 2000-03-30 21:33:19 +00:00
is
b2a8826b6a The cfunit (ab)use fix broke the Amiga early console autoconfiguration. 2000-03-30 20:58:39 +00:00
soren
471a03f8f6 Remove local hack. 2000-03-30 20:08:37 +00:00
soren
712cb103ff Customary GENERIC configuration.
Unfortunately, the Cobalt firmware seems to fail loading kernels larger
than about 2.5 megs before compression, so without a boot loader, this
is a rather amputated GENERIC.
2000-03-30 20:01:02 +00:00
joda
4772fa5b3c regen 2000-03-30 17:35:39 +00:00
joda
4c8aed5893 add the device id for the VIA 686A modem controller, continuing the
trend of mislabelling VIA's south bridges
2000-03-30 17:34:53 +00:00
augustss
d3908431bb Turn on UVISOR_DEBUG with USB_DEBUG. 2000-03-30 17:04:47 +00:00
augustss
dbf4f91643 Add (commented out) uvisor driver. 2000-03-30 17:01:01 +00:00
augustss
e8f6613abe Add driver for the Handspring Visor.
This code probably doesn't work, because it has not been tested.
Despite several pleas for testing there doesn't seem to be any Visor owners
out there.  Perhaps it will get tested if it's in -current?

Anyway, the code can at least serve as a template for how to make a USB driver
that shows up as a tty.
2000-03-30 16:56:19 +00:00
augustss
2c3137dc38 Add forgotten OpenBSD fix. 2000-03-30 16:38:55 +00:00
jun
c852fae661 add MobilePro700 2000-03-30 16:26:51 +00:00
jdolecek
fde0c4e6e0 Prototype vtophys() before defining it. Needed for compilation with
-Wstrict prototypes on macppc.

Problem noted by  Hans-Christian Becker <hcb@phc.chalmers.se> in private mail.
2000-03-30 16:18:24 +00:00
simonb
bf851ea6cb Nuke register. 2000-03-30 14:45:04 +00:00
simonb
6e0357239a Nuke register, diddle a bit of indentation in some function declarations. 2000-03-30 14:36:30 +00:00
pk
a41d265271 Add hardware acceleration features for use with the RASTERCONSOLE option.
Code posted on port-sparc by `der Mouse'; it was slightly re-arranged to
fit the layout of this driver.
2000-03-30 13:57:50 +00:00
augustss
4b30d9885e More register removal. 2000-03-30 13:53:32 +00:00
augustss
13e9027f58 Remove more register declarations. 2000-03-30 13:44:53 +00:00
oster
8d702c4b54 Nuke 'register' from some function prototypes. 2000-03-30 13:39:07 +00:00
leo
469b432d2d Make this compile with -DDEBUG 2000-03-30 13:28:28 +00:00
augustss
8529438fe6 Remove register declarations. 2000-03-30 12:51:13 +00:00
augustss
169ac5b3c1 Remove register declarations. 2000-03-30 12:41:09 +00:00
augustss
641df97d12 Remove more register declarations. 2000-03-30 12:31:50 +00:00
augustss
f0f9fcbe61 Remove register declarations. 2000-03-30 12:23:20 +00:00
augustss
bd842961d4 Register, begone! 2000-03-30 12:22:12 +00:00
augustss
1279e67b6e Kill some more register declarations. 2000-03-30 12:19:46 +00:00
augustss
1469ed1614 Kill more register declarations. 2000-03-30 12:13:30 +00:00
tsutsui
58714261cc Remove register declarations. 2000-03-30 11:37:21 +00:00
augustss
5e3d7e5317 Die, register, die! 2000-03-30 11:31:26 +00:00
augustss
a82aeb5508 Kill register declarations. 2000-03-30 11:24:16 +00:00
augustss
c1ebd1929a Kill some more register declarations. 2000-03-30 09:45:33 +00:00
augustss
c87c1861bb Add a special option, DEBUG_HALT_BUSY, that allows you to debug when the
system doesn't want to halt cleanly.  The code was there before, but only
with the DEBUG option.
2000-03-30 09:32:25 +00:00
augustss
264f1d27c6 Get rid of register declarations. 2000-03-30 09:27:11 +00:00
augustss
4fe9287221 Two more OpenBSD fixes. 2000-03-30 08:53:30 +00:00
sato
9f9ade2b2c add MC-CS backlight control. 2000-03-30 08:41:48 +00:00
sato
b2f06b320c fix mapping. 2000-03-30 03:29:47 +00:00
simonb
171910636e Delete redundant decl of aobj_pager - it's in <uvm/uvm_aobj.h>. 2000-03-30 02:49:55 +00:00
simonb
e4f5c09322 Delete redundant decls of fifo_vnodeop_p - it's in <miscfs/fifofs/fifo.h>.
Don't need <sys/conf.h> here.
2000-03-30 02:49:11 +00:00
simonb
c2e5560a03 Delete redundant decls of rootvp - it's in <sys/systm.h>.
Delete redundant decl of ffs_sbupdate() - it's in <ufs/ffs/ffs_extern.h>.
2000-03-30 02:48:22 +00:00
simonb
02042ff82c Delete redundant decl of rootvp, it's in <sys/systm.h>.
Don't need <sys/conf.h>.
2000-03-30 02:47:18 +00:00
simonb
19f0e3f6e8 Delete redundant decl of nfs_vget() - it's in <nfs/nfsmount.h>. 2000-03-30 02:46:36 +00:00
simonb
3e3701895d Delete redundant decls of fifo_vnodeop_p - it's in <miscfs/fifofs/fifo.h>.
Don't need <sys/conf.h> here.
2000-03-30 02:45:19 +00:00
simonb
b6c62dcaae Delete redundant decl of nfs_pub - it's in <sys/mount.h>.
Delete redundant decl of nfsrv_zapsock() - it's in <nfs/nfs_var.h>.
2000-03-30 02:43:58 +00:00
simonb
11bec2d6e1 Delete redundant decl of nfs_pub - it's in <sys/mount.h>.
Delete redundant decls of nfsv{2,3}_type - they're in <nfs/nfsproto.h>.
2000-03-30 02:43:13 +00:00
simonb
13e9e9754e Delete redundant decl of nfs_pub - it's in <sys/mount.h>. 2000-03-30 02:42:17 +00:00
simonb
515481f1ce Delete redundant decl of nfsv2_vnodeop_p, it's in <nfs/nfsnode.h>. 2000-03-30 02:40:37 +00:00
simonb
75c4560a75 Delete reduncdant decl of inetctlerrmap - it's in <netinet/in_var.h>. 2000-03-30 02:39:37 +00:00
simonb
1058c2aba9 Delete redundant decl of zeroin6_addr, it's in <netinet6/in6_var.h>. 2000-03-30 02:38:53 +00:00
simonb
c85fbea607 Delete redundant decl of ip_gif_ttl - it's in <netinet/in_gif.h>.
Delete redundant decl of ip_mforward() - it's in <netinet/ip_mroute.h>.
2000-03-30 02:37:40 +00:00
simonb
c2693b78a0 Delete uninitialised declaration of ip_defttl - there's an initialised
decl earlier in this file.
2000-03-30 02:35:24 +00:00
simonb
d1fd2a6b54 Delete redundant decl of in_socktrim() - it's in <netinet/in.h>. 2000-03-30 02:33:45 +00:00
simonb
e4c5993774 Extern decl of arpintrq. 2000-03-30 02:32:57 +00:00
simonb
76e291abe4 Delete redundant decls of if_slowtimo and if_null{output,input,start,
ioctl,reset,watchdog,drain} - they're in <net/if.h>.
2000-03-30 02:31:59 +00:00
simonb
f09bb94537 Delete redunctant decls of msdosfs_{mount,start,unmount,root,quotactl,
statfs,sync,fhtovp,checkexp,vptofh}() - they're local to msdosfs_vfsops.c.

XXX: These should be static in msdosfs_vfsops.c - another day...
2000-03-30 02:29:46 +00:00
simonb
f80823211a Delete redundant decl of rootvp - it's in <sys/systm.h>. 2000-03-30 02:27:35 +00:00
simonb
45171aaef9 Delete redundant decls of vn_syncer_add_to_worklist(), syncdelay,
filedelay, dirdelay and metadelay - they're in <sys/vnode.h>.
2000-03-30 02:21:49 +00:00
simonb
92701d715c Delete duplicate declaration of atopid(). 2000-03-30 02:20:14 +00:00
simonb
08312317e7 Delete redundant decl of layer_node_create(), it's in layer_extern.h. 2000-03-30 02:19:16 +00:00
simonb
0177c68ba1 Delete redundant decl of fdesc_root, it's in fdesc.h. 2000-03-30 02:16:22 +00:00
simonb
6fa443065b Delete redundant decl of union_vnodeop_p, it's in <miscfs/union/union.h>. 2000-03-30 02:15:09 +00:00
simonb
d1f05e517a Delete redundant decl of dounmount(), it's in <sys/mount.h>. 2000-03-30 02:12:25 +00:00
simonb
289a50f572 Delete redundant decl of isodirino(), it's in cd9660_extern.h. 2000-03-30 02:11:09 +00:00
simonb
5a5c310fae Delete redundant decls of fxp_enable(), fxp_disable() - they're in
i82557var.h.
2000-03-30 02:06:17 +00:00
simonb
9e370d4402 Delete redundant decl of com_attach_subr(), it's in comvar.h. 2000-03-30 02:04:30 +00:00
simonb
b75e08a514 Delete redundant decl of aicattach(), it's in aic6360var.h. 2000-03-30 02:02:53 +00:00
simonb
836abd43c2 Remove redundant decl of db_radix, it's also in <ddb/db_output.h>. 2000-03-30 02:01:49 +00:00
augustss
dd7160dcba Afew more OpenBSD portability fixes. 2000-03-30 00:18:17 +00:00
augustss
fc4d9ff403 Get rid of register declarations. 2000-03-30 00:00:55 +00:00
augustss
c62698f733 Fix a couple of misspelled comments. 2000-03-29 23:16:48 +00:00
augustss
1b57fb1495 Remove some unused prototypes. 2000-03-29 18:55:36 +00:00
augustss
96806cb7ea Fix a buglet. 2000-03-29 18:30:46 +00:00
augustss
a25e27e1eb Some OpenBSD portability fixes. 2000-03-29 18:24:52 +00:00
augustss
356d681927 Add ukactivate&ukdetach so uk devices can be detached. 2000-03-29 18:11:44 +00:00
soren
71398b0ad8 With e.g. mbr_bootsel, the boot loader just exits rather than reboot,
so print that.
2000-03-29 14:29:34 +00:00
leo
27d334cf76 Nuke a bunch of cf_unit abuses. 2000-03-29 14:19:22 +00:00
tsutsui
c693409acb Nuke register declarations. 2000-03-29 13:57:51 +00:00
tsutsui
ac8fa9c43d Remove "register" declaration. 2000-03-29 13:09:02 +00:00
ad
627a9ec886 Spelling error. 2000-03-29 12:02:01 +00:00
jdolecek
a6cb6fe4ee Log the optimization changes only if DEBUG. Fixes kern/9697 2000-03-29 08:46:57 +00:00
enami
78d601b7d4 Fix typo in comment. 2000-03-29 04:56:47 +00:00
simonb
b2a7dc176d Remove redundant decl for uvmspace_fork() - it's in <uvm/uvm_extern.h>. 2000-03-29 04:05:47 +00:00
simonb
bd11640b2c Remove redundant decl of rootvp - it's in <sys/systm.h>. 2000-03-29 04:03:08 +00:00
simonb
365daa37be Remove redundant decl of cold - it's in <sys/kernel.h>. 2000-03-29 03:59:43 +00:00
simonb
8a447f3757 Remove reduncdant decl of wdc_kill_pending - it's in <dev/ic/wdcvar.h>. 2000-03-29 03:56:53 +00:00
simonb
9308187dbf Remove redundant decl of consinit() - it's in <sys/systm.h>.
Remove duplicate definition of delay() - we only need one in this file.
2000-03-29 03:54:03 +00:00
simonb
0edd529101 Extern declaration of cputype. 2000-03-29 03:50:40 +00:00
simonb
5b911637a1 Remove redundant decl for phys_map - it's in <vm/vm_kern.h>. 2000-03-29 03:49:48 +00:00
simonb
868578431b Remove redundant decl for physmem - it's in <sys/systm.h>. 2000-03-29 03:49:02 +00:00
simonb
e764ed49e6 Remove redundant decl of msgbufmapped - it's in <sys/msgbuf.h>. 2000-03-29 03:48:20 +00:00
simonb
0fd09c8496 Don't need to include <sys/conf.h> here. 2000-03-29 03:43:33 +00:00
simonb
9ff7681a33 Don't need to include <sys/conf.h> here. 2000-03-29 03:43:31 +00:00
simonb
4471772be4 Multiple include protection. 2000-03-29 03:41:07 +00:00
simonb
56fba1c4d0 Remove duplicate declaration of ifindex2ifnet - it's in <net/if.h>. 2000-03-29 03:38:53 +00:00
simonb
fe30fe7adf Extern etherbroadcastaddr, ether_ipmulticast_min and ether_ipmulticast_max. 2000-03-29 03:36:32 +00:00
simonb
25b33c13f4 Extern the declarations of ifindex2ifnet and if_index. 2000-03-29 03:27:59 +00:00
simonb
4ca596f6a0 Don't prototype __assert() if not STANDALONE - <sys/systm.h> has already
included <lib/libkern/libkern.h> to get the prototype by this stage.

XXX: should we just change <sys/systm.h> from
	#ifdef _KERNEL
	#include <sys/systm.h>
	#endif
     to
	#if defined(_KERNEL) || defined(_STANDALONE)
	#include <sys/systm.h>
	#endif
     anyways?
2000-03-29 03:19:52 +00:00
enami
4feca5e9ea Remove unnecessary cast in previous. Pointed out by shin@netbsd.org. 2000-03-29 03:09:15 +00:00
simonb
5ab3ed0c39 Multiple include protection. 2000-03-29 03:07:52 +00:00
simonb
6043a575b2 Remove declaration of db_radix - <ddb/db_output.h> has one.
Also remove <sys/conf.h> - don't need it here.
2000-03-29 03:05:18 +00:00
simonb
bfb011b813 Remove duplicate ncr53c9x_dmaselect declaration. 2000-03-29 03:03:28 +00:00
simonb
d7a08fd8c5 Don't declare a variable in the 'struct platform' declaration - we declare
an extern for 'struct platform platform' further down this file anyway,
and this would have declared a 'platform' variable in any userland code
including this file.
2000-03-29 02:59:18 +00:00
augustss
023c506a5e Take off an item. 2000-03-29 02:17:42 +00:00
augustss
61db1b8e46 *SIGH* Revert back to the old method of aborting xfers.
I had tested the new stuff for two months now, but as soon as I commited
it the problems started to appear.  Murphy, no doubt...
2000-03-29 01:49:13 +00:00
augustss
9a386a047a Do not use all xfers at the same time, this can cause problems in the HC
drivers.
2000-03-29 01:47:25 +00:00
augustss
7e7ceecd2b A first stab at support for isochronous transfers. 2000-03-29 01:46:26 +00:00
augustss
5e754a177b Do not accept new xfers for queuing while a pipe is aborting. 2000-03-29 01:45:20 +00:00
simonb
60e58935c7 Oops, use sort(1) and not sort(brain). 2000-03-29 00:01:39 +00:00
simonb
2f1fef39b3 Centralise the declarations of cpu_model, machine, machine_arch,
osrelease, and ostype and remove "extern char foo[];" (for hostname
and domainname too).

Also delete redunctant decl of boottime in kern_info_43.c.
2000-03-28 23:57:24 +00:00
simonb
bb1fc886cf endtsleep() is prototyped at the top of the file, delete duplicate
declaration inside tsleep().
2000-03-28 22:04:46 +00:00
simonb
468456cf00 Delete duplicate definition of kernel time variable (in <sys/kernel.h>). 2000-03-28 22:01:52 +00:00
is
91d927ae42 synchronize to GENERIC 2000-03-28 20:17:14 +00:00
thorpej
6b45fb25a9 The assembler understands rdmsr, wrmsr, rdtsc, and rdpmc, so there's
no need to use .byte.
2000-03-28 19:17:29 +00:00
thorpej
fd21635b22 Extern cpu_id and cpu_vendor[] here. 2000-03-28 19:16:05 +00:00
thorpej
a142c171d0 Add: cmpxchg8b, wrmsr, rdtsc, rdmsr, rdpmc, rsm. From FreeBSD. 2000-03-28 19:15:40 +00:00
kleink
7e35a43e67 In mmap(), bail out with EOVERFLOW when mapping a regular file and the file
offset plus mapping length cannot be represented in an off_t.
2000-03-28 18:45:19 +00:00
kleink
2e68f6172e Cast timeval members to types we know the printf conversions of. 2000-03-28 18:39:03 +00:00
augustss
61462c55a3 Get rid of a lot of register declarations.
(Why isn't this done everywhere in the kernel already?)
2000-03-28 17:30:10 +00:00
augustss
fc39329153 Change a printf() to a panic() since the kernel is going to die on the next
line anyway.
2000-03-28 17:24:46 +00:00
augustss
f606c26834 Be more defensive in a DIAGNOSTIC test. 2000-03-28 17:07:04 +00:00
augustss
37e4821c88 The list is growing... 2000-03-28 10:54:35 +00:00
augustss
c2f90d0d43 Correct a debug message. 2000-03-28 10:53:59 +00:00
augustss
9609f4caa2 Add a comment. 2000-03-28 09:48:25 +00:00
augustss
3316da3988 Another patch for xfer abort...
XXX The current xfer queueing and aborting semantics should really
XXX be changed.  It cannot be implemented in a sane way on UHCI.
XXX One day when I have lots of time I'll redesign it...
2000-03-28 09:47:10 +00:00
simonb
071bde5df6 Don't need to declare nblkdev, nchrdev - these are in <sys/systm.h>. 2000-03-28 06:26:22 +00:00
simonb
36da923c2e Declare nbuf, buf, buffers and bufpages as extern. 2000-03-28 06:03:46 +00:00
simonb
780338f278 Remove duplicate declaration if uvm_swapin() - it's in <uvm/uvm_extern.h>.
Extern the declaration of initproc.
2000-03-28 06:01:05 +00:00
nisimura
1b0c1f4d0d Abandon the initial microscale optimization of pmap_alloc_asid(),
leaving the second change intact.  It'd be rather less costly to
extend the case analysis.
2000-03-28 05:58:33 +00:00
simonb
9dad451e2a Declarations of ctty{open,read,write,ioctl,poll} are covered by the
cdev_decl(ctty) in <sys/comf.h>.
2000-03-28 05:52:15 +00:00
simonb
9c9a99b549 Remove duplicate declaration of vattr_null() - it's declared with the
other prototypes in this file.  Extern the declaration of mntvnode_slock.
2000-03-28 05:49:30 +00:00
simonb
841d52b4e5 Declare the SysV IPC *info structures and shmsegs pointer as extern.
Add declaration for shmsegs to param.c after shminfo structure.
2000-03-28 05:14:03 +00:00
simonb
19a3051b02 Remove duplicate declarations of sysctl_rdstring() and sysctl_rdstruct(). 2000-03-28 05:07:42 +00:00
simonb
2f3d12c48c Remove duplicate declaration of sonewconn1() - there's another further
down in the same file with all the other prototypes!
2000-03-28 05:06:20 +00:00
simonb
7ca71558eb Remove prototype for pfctlinput() - there's already one in
sys/protosw.h with the other pf*() prototypes.
2000-03-28 05:04:45 +00:00
simonb
6060929e8e Move fpcurproc declaration to <mips/cpu.h>. 2000-03-28 03:11:26 +00:00
simonb
ef89d70178 Don't `extern' function declarations. While we're there, remove trailing
blank lines and white space.
2000-03-28 02:58:44 +00:00
simonb
ea6aa0dc3c Use the recent alpha solution to getting the printf() format right in
mips_init_msgbuf().
2000-03-28 02:53:18 +00:00
thorpej
0c4b7c7531 Add functions to read the TSC and Performance Counters. 2000-03-28 01:38:22 +00:00
simonb
338105f94b Make declaration of curpcb variable extern. 2000-03-28 01:06:04 +00:00
simonb
a833cd73e8 Remove duplicate declaration of pmap_is_page_ro() (in <mips/pte.h> and
pmap_zero_page() (in <vm/pmap.h>).
2000-03-28 01:04:22 +00:00
nisimura
464669d1ef The previous microscale optimazation in pmap_asid_alloc() was
half-baked and resulted in one superfluous ASID bump if new pmaps
are created when pmap_asid_generation > 0.   Need to initialize pmap
fields correctly.

Yet, this possibly might not be the perfect solution.  If one
process bumped pmap_asid_generation _after_ a new pmap was created
and initialized with then-current pmap_asid_generation value.  In
that case, the new pmap would have another (superfluous) ASID bump
when 2nd (not 1st) CPU tick is assigned.  I'm not sure if this case
would happen.

Have pmap_max_asid variable to hold the maximum number of ASID
(TLBpid) supported by processor anticipating the possible runtime
cost of ((CPUISMIPS3)? MIPS3_TLB_NUM_ASIDS : MIPS1_TLB_NUM_PIDS).
2000-03-28 01:00:00 +00:00
simonb
8ae7eeef11 Remove redundant declarations of mips3_cycle_count(), stacktrace(),
logstacktrace(), mips_idle() and cpu_switch() - these are already
declared in various header files.
2000-03-28 00:55:33 +00:00
simonb
d0e1814cba Remove duplication declarations of Sysmap and Sysmapsize - these are
in <mips/pte.h>
2000-03-28 00:52:57 +00:00
nisimura
73fa1ce87f Change 'goto cpu_switch1' to 'goto cpu_switch_queuescan' in vr_idle.S
and make the jump destination global.
2000-03-28 00:24:04 +00:00
thorpej
f4f96605b9 Add/correct some MSRs, from Intel Architecture Software Developer's Manual,
Volume 3 (System Programming).
2000-03-27 23:15:57 +00:00
augustss
28a87e2fdb Use default timeout for transfers. 2000-03-27 22:44:01 +00:00
augustss
568b4d8190 Be a little more careful when aborting.
Preallocate some TDs for large buffers.
2000-03-27 22:42:57 +00:00
augustss
8456fa4709 Add a flag for umass debugging. 2000-03-27 22:40:48 +00:00
scottr
10c763efa3 The declaration for esp has moved to conf/files. (Hi Charles!) 2000-03-27 21:47:46 +00:00
jdolecek
07fd899a7f Add new CLUST_END and use it as parameter to pcbmap() when searching
for end cluster, instead of explicitly passing 0xffff. This fixes potential
problem for FAT32, where cluster number may be legally bigger than 0xffff.

Also change clusteralloc() so that fillwith is not explicitly passed by caller
anymore (there is no need to use anything other than CLUST_EOFE).

Reviewed by: Wolfgang Solfrank
2000-03-27 17:40:26 +00:00
kleink
ba9bb9dcd5 Cosmetical nit in previous. 2000-03-27 17:00:50 +00:00
kleink
a51ef2c3f9 Kill duplicate uvn_attach() prototype (public, already in uvm_vnode.h). 2000-03-27 16:58:23 +00:00
ad
2030c2a75a Regen. 2000-03-27 16:56:27 +00:00
ad
9bdb74bc42 Add a couple of DPT devices. 2000-03-27 16:55:43 +00:00
nonaka
c1a7a27642 rewrite some bus_space functions like port-i386. 2000-03-27 16:45:41 +00:00
msaitoh
35ba37f2f7 fix the sci[f]cninit() bugs to work both SCI and SCIF at the same time. 2000-03-27 16:24:08 +00:00
minoura
87bc025f49 Move par under intio. 2000-03-27 15:53:04 +00:00
minoura
f23d278c1d Make this compile (typo in callout change). 2000-03-27 15:49:34 +00:00
leo
d4ff1a5f4e This file was forgotten in the commit with log message:
Move the ite_default_* variables to ite.c. They are generic ite.
2000-03-27 14:08:39 +00:00
onoe
6daecf7901 Fix multicast filter to set IFF_ALLMULTI flag properly. Also clear
unused group address from filter.
2000-03-27 12:58:01 +00:00
onoe
720e17c11e Do not try to lock out MAC until the firmware correctly start up, to avoid
"awi: failed to lock interrupt" message when IRQ are shared with other
devices [PR kern/9660]
2000-03-27 12:54:59 +00:00
onoe
ab9d324f37 backout changes between 1.10 and 1.12 to re-enable awictl stuff.
Actually, it is partially duplicated with SIOC[GS]IFMEDIA and
SIOC[GS]80211NWID ioctls currently supported.  But I'd like to leave it
until configuration interface for common 802.11 stuff will be cleaned up.
2000-03-27 12:52:45 +00:00
augustss
fc72e72d7d Change (almost) all static to Static. The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.
2000-03-27 12:33:53 +00:00
simonb
20bd3ffa72 Remove duplicate declaration of __cmpdi2() 2000-03-27 12:00:48 +00:00
augustss
439812ba3b In attach message, spell it "target" not "targ", as in the locator. 2000-03-27 11:45:42 +00:00
soda
ccc163be60 -Wmissing-prototypes cleanup 2000-03-27 11:29:32 +00:00
soda
4531dedece fix typo in timeout -> callout transition. 2000-03-27 11:22:51 +00:00
enami
c522067861 Maintain IFF_ALLMULTI flag by ourself. 2000-03-27 11:03:47 +00:00
jdolecek
b68ecd89bc one more 2000-03-27 10:15:13 +00:00
jdolecek
6b551ba751 one less - async mode support implemented 2000-03-27 09:45:38 +00:00
jdolecek
1d246008e0 Support async option by using delayed writes for metadata when mounted
with async. This increases the speed of my extract-archive test by about
20% on floppy, 10% on ZIP. "You've got the rope."
2000-03-27 09:44:45 +00:00
augustss
2341e5679e Don't mess with QH in bulk abort for the moment. 2000-03-27 09:41:36 +00:00
nisimura
fa6012454d It's not necessary to (re-) assign pmap->pm_asidgen whenever ASID
(TLBpid) is bumped.  It's ok just in the case when pmap_asid_generation
is bumped.
2000-03-27 08:56:21 +00:00
augustss
8e7f7d2d69 Keep free block statistics. 2000-03-27 08:27:03 +00:00
augustss
9e5b3b729c Remove some debug nonsense. 2000-03-27 08:01:09 +00:00
augustss
9ffe849791 Make it compile without DIAGNOSTIC. 2000-03-27 07:39:48 +00:00
enami
8d29747e3b When we fall into allmulti case due to too may multicast address,
properly set the type and length in struct wi_ltv_mcast.
2000-03-27 07:04:21 +00:00
enami
19e7b1b8ae No need to call wi_setmulti() if ether_{add,del}multi returns 0. 2000-03-27 06:48:05 +00:00
enami
b31c6d62e2 Fix previous in a different way. 2000-03-27 06:41:02 +00:00
nisimura
06b4feb7d6 Have TBIA/TBIAP an argument refering to a global variable instead
of a compile time constant.
2000-03-27 05:30:40 +00:00
nisimura
5987070300 - Rename some of TLB ops to have handy abbrivations hired from VAX and
ALPHA; mips1_TBIA, mips1_TBIAP, mips1_TBIS.
- Make sure TBIA and TBIAP ops to have an argument for the size of TLB
  which varies across even for MIPS1 implementations.
- Nuke the unused cpu_isa field from processor personality list.

- XXX XXX XXX
  it's less-than-optimal and likely a mistake to have TLBUpdate().
  It's costy to try to invalidate a single TLB entry whenver a certain
  PTE is going to be modified by traversing the entire TLB looking
  for the modified PTE because the PTE in question is not in TLB in
  most cases.  ASID bump could do the invalidation smartly.  Solution
  is planned for now.
2000-03-27 05:23:42 +00:00
nisimura
cbab853044 Rename sw1 label found in cpu_switch() to cpu_switch_queuescan,
abandoning unnecessary .globl because switch_exit() is handsomely
common between MIPS1 and MIPS3.
2000-03-27 04:52:11 +00:00
enami
24a0efebab Fix compilation error (printf format mismatch) due to recent round_page()
change.  While I'm here I fold the long line.
2000-03-27 04:01:54 +00:00
oster
d0c76be757 cleanup function prototypes. 2000-03-27 03:25:17 +00:00
oster
b97e06092d Shuffle some prototypes to a more appropriate location. 2000-03-27 03:01:33 +00:00
nisimura
24571569fa Nuke MIPS_16K_PAGE conditional which should be commited in. It
was used for debugg'n purposes which only make senses on particular
hardware configurations and has never been intended to extend pagesize
of NetBSD/mips.
2000-03-27 02:55:13 +00:00
nisimura
0076cd46eb - Nuke unnecessary cast.
- Change comments on cpu_startup() so as what it does (XXX found mostly
  common across ports).
- Retain UNIX heritage of /* Good {morning,afternoon,evening,night} */.
2000-03-27 01:51:17 +00:00
nisimura
795ee9db8e Remove unnecessary bzero() op for proc0's USPACE as pmap_steal_memory()
returns a nullified area.
2000-03-27 01:24:55 +00:00
oster
2ee63332b3 Add bits for eventual support of deleteing components and moving
hot-spares into the main set.
2000-03-26 22:38:28 +00:00
augustss
a52e96b1eb Fix typo. Found by Aaron Campbell <aaron@cs.dal.ca>. 2000-03-26 21:42:54 +00:00
mycroft
b0a227745b Add IPsec. 2000-03-26 21:35:48 +00:00
kleink
b5d668aff1 1.4X -- vnode storage layout and UVM map/page/pager ops interface changes. 2000-03-26 20:57:02 +00:00
kleink
6e5b64c8a0 Merge parts of chs-ubc2 into the trunk:
Add a new type voff_t (defined as a synonym for off_t) to describe offsets
into uvm objects, and update the appropriate interfaces to use it, the
most visible effect being the ability to mmap() file offsets beyond
the range of a vaddr_t.

Originally by Chuck Silvers; blame me for problems caused by merging this
into non-UBC.
2000-03-26 20:54:45 +00:00
kleink
08025fbc20 Kill duplicate udv_attach() prototype; it's a public interface, and declared
in uvm_device.h.
2000-03-26 20:46:59 +00:00
kleink
230876cf26 Merge parts of chs-ubc2 into the trunk:
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
  make them type-generic, which is necessary i.e. to operate on file offsets
  without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
  integral type (paddr_t, vaddr_t).

Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
kleink
8abfe24915 Cast timeval members to types we know the printf conversions of. 2000-03-26 20:24:12 +00:00
mycroft
a5edb9f747 Oops; fix thinko. 2000-03-26 19:11:04 +00:00
mycroft
a08d308dc2 Update byte count and time stamps for received packets (as in ESP).
May help fix stalls.
2000-03-26 18:55:37 +00:00
martin
0a1221cb28 Added a PCI frontend for the legacy ISA joystick driver.
Some PCI soundcards don't seem to use the generic gameport function with
interface 0x10 used here, but have either an own BAR dedicated to this
(i.e. Sonic Vibes or ESS Solo-1) or specify their own device (see
PCI_PRODUCT_CREATIVELABS_SBJOY in sys/dev/pci/pcidevs.h).
Probably these use a similar simple sheme and adding a frontend for them would
be trivial, but I don't own any of these cards, so I didn't.
2000-03-26 15:36:48 +00:00
augustss
a9643a2075 Regen & adjust name. 2000-03-26 15:08:43 +00:00
augustss
59310c8294 Adjust the name of the Kawasaki Ethernet adapter. 2000-03-26 15:08:02 +00:00
ragge
30819cb81c Bus_dma'ify the KDB50 driver, and make it work. 2000-03-26 11:45:04 +00:00
ragge
aef1518cd8 Implement bi_intr_establish(). Add some fields about which CPU to interrupt. 2000-03-26 11:41:25 +00:00
ragge
dd359f65dd Need some vectors and pointers to be set before IPL is lowered. 2000-03-26 11:40:31 +00:00
ragge
b81cd3fa6b Identify ourselves. 2000-03-26 11:39:45 +00:00
ragge
fc55ca0933 Allow 16 fragments for MSCP DMA. 2000-03-26 11:37:55 +00:00
soren
7b737d77b3 For Cobalt Networks 21143's, always use store-and-forward and toggle
a GPIO line to fully reset the PHY.
2000-03-26 10:53:39 +00:00
nisimura
ae55376f19 - Remove unused bt459reg.h.
- sfbvar.h has gone, placing patch on holes for now.  Every TC framebuffer
  has a single explosure of xxfb_cnattach() which could be bridged by MI
  land.
2000-03-26 10:32:51 +00:00
itojun
240cf24ebd regen (sorry forgot to do separate commit for them) 2000-03-26 10:31:19 +00:00
itojun
74846d31f5 add CIS for Corega Wireless LAN PCC-11 (no driver support yet) 2000-03-26 10:24:51 +00:00
frueauf
440814a0b5 Add "struct device sc_dev;" to struct par_softc.
Reviewed by Ignatios Souvatzis.
2000-03-26 10:15:32 +00:00
itojun
130ac9eafe don't call if_deactivate with NULL ifp.
sc->sc_ifp can be NULL if awi_pcmcia_attach() fails, so you will see panic
if you remove a card which fails on attach.
2000-03-26 10:09:33 +00:00
augustss
5b99967f1d Avoid a pointless debug message. 2000-03-26 10:01:32 +00:00
tsubai
ffdaae73e0 Enable gmac ethernet. 2000-03-26 09:16:01 +00:00
tsubai
f8a898cb1d Use ring buffer on tx side, too. 2000-03-26 09:15:17 +00:00
tsubai
5684221bbd esp declaration was moved to conf/files. 2000-03-26 08:34:20 +00:00
tsubai
d806694e39 Fix typo. 2000-03-26 08:29:12 +00:00
is
40b550935e provide CCITT includes, and work around namespace collision 2000-03-26 07:52:58 +00:00
nisimura
c4dd0cba64 Add 'struct callout repeat_ch;' in ACCESS.bus softc storage. 2000-03-26 06:51:46 +00:00
nisimura
99806742c0 Remove local implementation switching to accelerated MI sfb.c. 2000-03-26 05:52:17 +00:00
tsutsui
5513a809b2 Remove duplicated "audio* at uaudio?" line. 2000-03-26 04:31:39 +00:00
bouyer
ff2eb3a510 Remove unneeded assignement to nblks 2000-03-25 21:37:51 +00:00
scw
8b9e435d47 Nuke some warnings when KERNEL_DEBUG is defined. 2000-03-25 21:26:47 +00:00
fvdl
aa0f78b2f6 We can use openings = 16 here; this won't even exhaust the number of
allocated SCBs for 16 targets, and it's a noticeable difference.
2000-03-25 21:09:08 +00:00
frueauf
253924ee60 Fix typo: hxto -> hzto. 2000-03-25 20:23:05 +00:00
frueauf
01643c9f97 Fix typo: calllout_reset -> callout_reset. 2000-03-25 20:14:44 +00:00
mycroft
528bd4a794 Move esp declaration to conf/files. 2000-03-25 19:58:04 +00:00
fvdl
97688d9a83 Do simple tagged queueing, enabled by default. 2000-03-25 19:52:12 +00:00
uch
398dafb09a enable USB staff. 2000-03-25 19:05:45 +00:00
augustss
5018b862c1 Remove one, add one. 2000-03-25 18:12:20 +00:00
augustss
3fded57690 Rename and move around callout handles to make it more sane.
Add some DIAGNOSTIC.
Fix buglet in isoc abort on UHCI.
2000-03-25 18:02:32 +00:00
augustss
b7eeb17414 Change the test for cold boot slightly to avoid a long busy wait with UHCI. 2000-03-25 17:59:34 +00:00
augustss
34bd644399 The Wacom CT0405U delivers strings, but they are wrong. Don't use them. 2000-03-25 17:30:00 +00:00
oster
d9da26f998 Nuke a function prototype that shouldn't be here. 2000-03-25 16:24:57 +00:00
tsutsui
9100212ef0 Add a "sc_rev" member to ncr5380_softc and handle CXD1180 quirk
in MI ncr5380sbc.
2000-03-25 15:27:54 +00:00
uch
807350797d cosmetic change. 2000-03-25 15:12:04 +00:00
uch
7832b88a4a -G 30 -> -G 24 2000-03-25 15:11:08 +00:00
uch
f9204d0a57 TOSHIBA TC6358TB(PLUM2) OHCI module support. 2000-03-25 15:08:26 +00:00
uch
58bae8effe bus_dma. taken from pmax. 2000-03-25 15:04:32 +00:00
ad
b84aceb90d The bus_space stuff handles byte order conversions for us. 2000-03-25 13:38:35 +00:00
nisimura
61609b54e2 Make sure proc0 PCB has spl0 condition in CP0 status register field.
cpu_fork() mistakenly created processes forked by proc0, including
kthreads, in splhigh condition, because [1] proc0's PCB was zero
cleared during initialization, and [2] value 0 in status register
field made processes to have splhigh condition when CPU tick was
assigned for them.  This mostly doesn't matter as forked processes
dive immediately into user mode through proc_trampoline code path,
however, kthreads never do that and remain in splhigh.

Reported by Ethan Solomita <ethan@geocast.com>.
2000-03-25 10:14:13 +00:00
augustss
9893633d57 Improve uhci_dump_ii(). 2000-03-25 07:23:12 +00:00
augustss
df370f0e48 More DIAGNOSTIC.
Initialize a callout handle I forgot.
2000-03-25 07:13:05 +00:00
nisimura
b6b06284ce Add QED RM7000 PrID. 2000-03-25 06:33:50 +00:00
nonaka
567afae35f add some devices 2000-03-25 04:13:54 +00:00
nonaka
31dc574dbc more fixup pci base address 2000-03-25 04:12:20 +00:00
msaitoh
ddb9af1bfe set SQMD bit when sh4 2000-03-25 03:07:29 +00:00