Commit Graph

36412 Commits

Author SHA1 Message Date
erh 34b72dcf4a Add defines for linux_sys_reboot. 2000-03-18 22:01:02 +00:00
mycroft 48e59fc985 esp -> esp_isa 2000-03-18 21:50:20 +00:00
mycroft 4a915758fd esp -> esp_isa 2000-03-18 21:49:33 +00:00
mycroft 9dd3a0973d This turns out to be the wrong interface for what I needed -- but I'll leave
the code here for now.
2000-03-18 21:11:16 +00:00
scottr 513f613391 Add the RasterOps 24MxTV; this card operates in the same manner as two
other RasterOps boards we already handle.  Information provided by
Greg Kerr.
2000-03-18 20:53:24 +00:00
erh a159733250 Regen. 2000-03-18 20:44:01 +00:00
erh 50ef430f08 resync NOARGS lines with their definitions in kern/syscalls.master. resync STD lines with what is expected in .c files. (especially wrt adding const). Add missing prototype for setfsuid. Fix ptrace prototype. 2000-03-18 20:43:33 +00:00
erh fa21d7879c Adjust linux_sys_ptrace_args to reflect inconsistencies across ports. Temporarily ifndef alpha around getfsuid since Linux/alpha doesn't seem to have it. 2000-03-18 20:42:14 +00:00
mycroft 03dddfc09e Preliminary support for 53c40x-based cards. Needs some more work. 2000-03-18 17:59:52 +00:00
mycroft b1d2b97787 Change footprint of ncr5380_intr() to match normal interrupt handler usage. 2000-03-18 17:14:34 +00:00
mycroft 1d1321109f Use bus_space on MIPS. 2000-03-18 17:07:46 +00:00
mycroft 28b4015ca2 GC. 2000-03-18 16:52:20 +00:00
ragge cae5843a06 Fix typo that caused lance chip not to be detected. 2000-03-18 16:20:06 +00:00
mycroft e1a7dc9b2a Fix line wrapping. 2000-03-18 16:16:12 +00:00
mycroft 6780878550 Fix pasto in previous. 2000-03-18 16:14:57 +00:00
mycroft 0af581a1a1 Add a ncr5380_attach() routine which does part of the initialization, attaches
the scsibus, and does the addref/delref dance.
2000-03-18 16:13:22 +00:00
mycroft 302a1bd362 Regen. 2000-03-18 15:01:33 +00:00
mycroft 2ab04a0400 Add the Panasonic 4X CD-ROM Interface CArd. 2000-03-18 15:00:31 +00:00
mycroft 7e9aa53f0a nca -> nca_isa 2000-03-18 13:17:03 +00:00
mycroft 5960b2aec6 Move some code around in preparation for nca_pcmcia. 2000-03-18 13:05:20 +00:00
scottr c62e39490c Check to make sure we get a valid handler ID in response to a TALK R3. 2000-03-18 08:07:50 +00:00
cgd 638726b0db * rework the quirk table ('device_tab'):
* QUIRK_NOMSG only has any meaning when NCR_GETCC_WITHMSG
      is defined.  Therefore, there's no harm in using it when
      NCR_GETCC_WITHMSG is not defined.  so, simplify the table
      by removing the #ifdef.
    * there's really no point in having table entries after
      an entry which will match everything.
    * add some comments, clean up spacing.

* add an entry for "QUANTUM"/"ATLAS IV" drives with flags
  QUIRK_NOTAGS|QUIRK_NOMSG.  (I included the latter flag only
  because everything else had it before! ... which means that
  all the functionality added with the NCR_GETCC_WITHMSG define
  would never get used! *sigh*)  The latter fixes the problems
  I was having on an Atlas, and should fix the problems mentioned
  by Hans Hoppe <hopha@casema.net> in comments on PR#7694.
2000-03-18 06:59:02 +00:00
cgd 52b7212c58 undo the non-script changes from rev 1.87. They caused problems in
1.4.x and i have concerns (but no concrete proof) they will cause/have caused
problems in -current as well.  Really, the right way to fix this is to
rewrite the driver, and push up tagged queueing handling into a common
middle layer that'll do it right in a low-level-driver-independent manner.
I'll fix my particular issues by using the ncr driver quirk mechanism.
2000-03-18 06:47:28 +00:00
itojun d926d6fa47 #if 0'ed undo code for interface address addition failure.
it was a bit too strong, and forbids multiple addresses from
same prefix to be assigned.

now the behavior is the same as previous - memory leak on interface address
addition failure.
http://orange.kame.net/dev/query-pr.cgi?pr=218
2000-03-18 02:41:58 +00:00
tron e86957458a Install "machineendian_machdep.h". 2000-03-17 22:36:31 +00:00
augustss 670d533d54 Keep the bit position even when the report descriptor says POP. 2000-03-17 18:09:17 +00:00
tron 8caeaa49bd Install "endian_machdep.h" required for "sys/endian.h". 2000-03-17 17:22:57 +00:00
soren d07596ff64 Allow mips endian_machdep.h to see _LITTLE_ENDIAN and _BIG_ENDIAN. 2000-03-17 11:47:43 +00:00
soren 11bd453515 scsiprint() is needed even without scsibus'es, so move it to scsi_base.c . 2000-03-17 11:45:49 +00:00
soren bd1cc85c63 Use a kvtophys() hack for mips like for alpha. No idea if it actually works.. 2000-03-17 11:30:14 +00:00
soren 82ad0bf745 atapiprint() does not exist. 2000-03-17 11:23:23 +00:00
sato 2b251ae99b change about debug print. 2000-03-17 09:54:15 +00:00
bouyer 5c0cae7a28 Fix botched merge in previous. 2000-03-17 09:25:22 +00:00
bouyer 0bf221f2d9 - remove leftovers of FreeBSD code in #if 0/#endif
- fix a bug in ti_encap() where a NULL pointer could be used if we run out
  of tx descriptors (return ENOMEM instead, and let the caller assert OACTIVE)
- sync boot messages with NetBSD's pci standart (print ti_name and irq
  line)
- add a shutdown hook to stop the board, so that the board will not DMA at
  random places while we're rebooting
- convert all but TIGON 1 transmit descriptors to use bus_space
  (this last one isn't trivial to get rigth and I don't have the hardware to
  test)
- If we can't map the mem space linar, retry to map it nolinear. Punt if
  we couldn't map the mem space linear and we found a Tigon 1 chip.

With these changes a Tigon 2 board (netgear BA620 at last) can be used in
my DS20.
2000-03-17 09:20:16 +00:00
scottr 0a23aef85e Resurrect a chunk of code from the ite driver that we lost along the way.
This code is necessary for SE/30 internal video, at a minimum.
2000-03-17 04:46:32 +00:00
fvdl 512503c606 If we're reclaiming, and there are no dirty blocks, just return. 2000-03-17 01:26:52 +00:00
fvdl c3167b9545 Do previous better. Use FSYNC_RECLAIM as it was before. 2000-03-17 01:25:06 +00:00
mycroft edf942a988 In the `MY THAT'S GROSS' department:
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:10:24 +00:00
mycroft 9e21b6555a In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
darrenr 08227b6c88 build stkbuf out of u_long rather than char for sys_ioctl() to ensure we get an aligned array 2000-03-17 00:01:48 +00:00
thorpej 93eb82ff2f Recognize the Intel InBusiness. 2000-03-16 23:41:40 +00:00
thorpej 56460ec830 Regen. 2000-03-16 23:41:30 +00:00
thorpej 3f182de5c6 Add product ID for the Intel InBusiness 10/100 Ethernet adapter (which
is an i82559 with a different product ID).
2000-03-16 23:36:44 +00:00
darrenr 162b0b1dab __P(()) -> __P((void)) 2000-03-16 23:21:05 +00:00
augustss cdc4484e47 Regen. 2000-03-16 21:51:45 +00:00
augustss 94f5fe4392 Add Altec ADA70 speakers and have them recognized despite announcing an
old rev of the USB audio spec.
2000-03-16 21:51:23 +00:00
jdolecek 88b591be30 Adapt to last VFS changes - add appropriate vfs_done routine. 2000-03-16 19:00:26 +00:00
jdolecek 139fcd8227 Bump kernel version to 1.4V - VFS op vfs_done added 2000-03-16 18:32:23 +00:00
uch 34329d9139 regen. 2000-03-16 18:28:11 +00:00
uch 348fff03fb add I/O DATA USB-ET/TX USB ethernet adapter. 2000-03-16 18:27:21 +00:00
jdolecek 67d0de97b6 Change ufs_init() to keep global count of how many times it was called.
Resources are initialized still just once (on first call).

Add ufs_done(), which takes care of freeing all resources allocated in
ufs_init(). The resources are freed only when last user of the code exits.
2000-03-16 18:26:49 +00:00
jdolecek 03efc0b2b7 Add new VFS op routine - vfs_done and call it on filesystem detach
in vfs_detach(). vfs_done may free global filesystem's resources,
typically those allocated in respective filesystem's init function.
Needed so those filesystems which went in via LKM have a chance to
clean after themselves before unloading.

For each leaf filesystem, add appropriate vfs_done routine.

Also remember how many times ffs_init() was called and do
the appropriate initialization on first call only. In ffs_done(),
destroy the resources when called by the last user of ffs code.
Change mfs to call ffs_init()/ffs_done() appropriately.
2000-03-16 18:20:06 +00:00
jdolecek 89015c4648 Add new VFS op routine - vfs_done and call it on filesystem detach
in vfs_detach(). vfs_done may free global filesystem's resources,
typically those allocated in respective filesystem's init function.
Needed so those filesystems which went in via LKM have a chance to
clean after themselves before unloading. This fixes random panics
when LKM for filesystem using pools was loaded and unloaded several
times.

For each leaf filesystem, add appropriate vfs_done routine.
2000-03-16 18:08:17 +00:00
jdolecek 677d6a9962 add hashdone() - frees memory previously allocated via hashinit() 2000-03-16 17:19:53 +00:00
onoe 9eb76252d0 Regen. 2000-03-16 16:48:59 +00:00
onoe 8a8e062c16 cards for if_awi:
Add AirSurfer Pro
	Change the name for AMD Am79C930.  The same CIS strings are used
	both for Melco WLI-PCM and NTT-EL SS Magic.
2000-03-16 16:38:41 +00:00
kleink 8bc084e1de Kill more broken cf_unit bogons. 2000-03-16 16:37:20 +00:00
ad afaa5767a3 Match shutdown msg with that of cac.c. 2000-03-16 15:13:05 +00:00
ad 534da504b9 Cosmetic change. 2000-03-16 15:09:59 +00:00
mycroft 02905321b2 Foolish consistency. Mainly, always use underscores and sys/endian.h. 2000-03-16 15:09:34 +00:00
ad a81a812b50 Remove unneeded field in 'struct cac_ccb'. 2000-03-16 15:07:22 +00:00
ad ce0c2b1962 Attach cac* at pci?, ca* at cac?. Commented out where needs be. 2000-03-16 15:05:18 +00:00
ad d8bd9a762a Make ca(4) useable as a block/boot device. 2000-03-16 14:53:29 +00:00
ad 70063dc527 Driver for Compaq array controllers and disks (cac(4)/ca(4)). 2000-03-16 14:52:22 +00:00
mycroft 415cbeb83f This code has nothing to do with UCB. 2000-03-16 14:15:26 +00:00
tsutsui 6e0e3d609f Replace LE() macro with le32toh()/le32toh(). 2000-03-16 12:40:51 +00:00
fvdl 1c78f3708b Inititalize the fs variable struct a little earlier to avoid referencing
a bad pointer in a printf. Problem reported by Krister Walfridsson.
2000-03-16 10:37:00 +00:00
fvdl 1a774a9979 Set bus_intr to ahc_pci_intr. 2000-03-16 10:34:33 +00:00
fvdl f44ddd61a9 Do bus-specific interrupt handling (i.e. ahc_pci_intr) via a bus_intr
field in the softc, instead of relying on NPCI > 0. This would
prevent things from compiling if PCI buses were in the config file,
but ahc was attached only to something else than the PCI bus.
2000-03-16 10:33:45 +00:00
nisimura f7f5e0a24c Note that HX (PMAGB-B) has no support for small (less than 8 pixel width)
font.  If attempted, kernel will explode.
2000-03-16 08:42:40 +00:00
nisimura f52c9620bc Place 34 by 80 console at the center of screen. 2000-03-16 05:50:57 +00:00
nisimura 0b765ee6f8 Retain rendering performance lossage by rasops, but suffering
flexibility in turn; this renderer is 2B stroke (less than 16 pixel
width) font only.  If 1B stroke (less than 8 pixel width) font is
ever supported, the font data should be converted into 2B stroke
during font initialization process.  'wsfont_realize()' is to be
proposed in order to have 'CPU and/or accelerator hardware friendly'
format to squeeze maxinum performance.
2000-03-16 05:48:28 +00:00
enami 8fa8b77325 Sync disklabel.5 with disklabel.h and dkio.h more closely. 2000-03-16 05:16:19 +00:00
enami 172410a85d s/alternate/alternative/ from rev. 1.5 of disklabel.5. 2000-03-16 04:58:35 +00:00
enami aa8b5ebd93 On initialization failure, free all the storage allocated to store
component pathnames rather than the last one.
2000-03-16 03:54:01 +00:00
enami 5336e37153 Make this file just compiles again.
XXX Don't expect to work yet.  It fails even to link depending on your
XXX kernel config file.
2000-03-16 03:06:51 +00:00
thorpej 2ac45d6eef Quiet down the DAD messages a little more. 2000-03-16 02:53:45 +00:00
eeh 3b51289caa Revamp interrupts again:
Fix a bug causing interrmittent panics in interrupt dispatch.
	Use interrupt vectors for softints.
	Add a new send_softint interface.
	Improved D$ flushing.
	Improve traptrace and other debugging enhancements.
2000-03-16 02:36:56 +00:00
shin 6190c3253f add 'makeoptions CWARNFLAGS=""' to override CWARNFLAGS?= -Werror. 2000-03-16 01:45:51 +00:00
augustss c99c03da4d Make the USB event queue longer. Mine overflows before the (user-land)
event handler has started.  But then I have about 25 devices connected. :)
2000-03-16 00:46:38 +00:00
augustss 1a9f0619fd Fix thinko in the handling of FORCE_SHORT_XFER so that it actually
transfers a 0 length package instead on munging the whole transfer.
The aue driver works now.
2000-03-16 00:41:50 +00:00
augustss f9fd27ea3c Fix an uninitialized variable. From Krister Walfridsson <cato@df.lth.se> 2000-03-15 22:41:29 +00:00
augustss 499e5cba01 Fix some uninitialized variables. From Krister Walfridsson <cato@df.lth.se> 2000-03-15 22:40:30 +00:00
kleink 1634305526 Kill a couple of unnecessary cf_unit (ab)uses. 2000-03-15 20:40:00 +00:00
thorpej 411a31adb2 - Go to splimp() when sending the rtsock message regarding link status.
- Would like to notify protocols if a link goes up or down, to e.g.
  restart Duplicate Address Detection, etc.  Add a comment to this
  effect.
2000-03-15 20:34:43 +00:00
thorpej c38405d33d Add power management support to the `tlp' driver. The battery on my
laptop lasts a whole lot longer now.
2000-03-15 18:39:50 +00:00
soren b4e10b0a4e s/md/raid/ for RAIDframe major name. 2000-03-15 17:08:37 +00:00
oster 36b9d60244 Add the RAIDframe device major to the machine-dependent config files
so that the right entries get added to dev_name2blk[].  Needed for / on RAID.
(Missed these yesterday.. Thanks to Izumi Tsutsui for noticing, and for
letting me know :) )
2000-03-15 16:57:12 +00:00
drochner aa1de89bdf explicitely #include <sys/systm.h> #if BUS_SPACE_DEBUG to get a printf()
prototype
2000-03-15 16:44:48 +00:00
fvdl e3dbad5a3c Revert this back to 2 revisions ago, these checks are done higher up now. 2000-03-15 16:31:52 +00:00
fvdl 14cbd3e2b0 In fdatasync, do not call bioops.io_fsync, since we're not flushing
metadata. If you do call it, there's actually a fair chance that it
will panic because its metadata dependencies were not cleared in
the VOP_FSYNC above (with FSYNC_DATAONLY).
2000-03-15 16:30:39 +00:00
fvdl 01db605567 Do the previous slightly different: any files on MNT_SOFTDEP filesystems do
not want all their metadata dependencies flushed from vinvalbuf() if
there are no dirty blocks.
2000-03-15 16:28:45 +00:00
fvdl 73797e6d2a Stupid hack: run the apm kthread at 8*hz/7 intervals, not hz. Prevents
the load average from being 1.0 or higher constantly.

XXX really need a better way of calculating the load average.
2000-03-15 09:30:11 +00:00
sommerfeld fbc4dbb7ac Catch up to rearranged aic7*.h files 2000-03-15 07:17:06 +00:00
nisimura 220005d941 Eliminate unused sc_cookie field of struct ioasic_softc. 2000-03-15 03:07:44 +00:00
fvdl 14620f1eee PCI frontend for new ahc driver. 2000-03-15 02:33:52 +00:00
fvdl 20b063e782 Add new files for common ahc EISA/VL code. 2000-03-15 02:10:41 +00:00
fvdl bacabba843 Add new files for common VL/EISA ahc code. 2000-03-15 02:10:09 +00:00
fvdl 1e4647a15b New ahc driver, a port of Justin Gibbs' FreeBSD driver. This adds
support for the U2W chips, and U160 controllers.
2000-03-15 02:08:28 +00:00
fvdl 085f68836e Common code for EISA and VL frontends for the ahc driver, split off
by Noriyuki Soda when updating for the new ahc driver.
2000-03-15 02:06:18 +00:00
fvdl bb8265c6be Update ISA/VL frontend for new ahc driver (done by Noriyuki Soda). 2000-03-15 02:05:19 +00:00
fvdl 7df6153163 Update EISA frontend for new ahc driver (done by Noriyuki Soda). 2000-03-15 02:04:43 +00:00
fvdl 2da1f00fcd Update cardbus frontend for new ahc driver. 2000-03-15 02:03:51 +00:00
fvdl 46eb4f1451 Add SLIST. 2000-03-15 02:03:11 +00:00
fvdl d025f5705e Add a couple of defines/aliases for messages. 2000-03-15 02:02:37 +00:00
haya b6f22443bb Remove ancient code. 2000-03-15 00:38:40 +00:00
augustss 1e1f1f3b3b Make sure the USB event thread discovers all devices first time it call
usb_discover().
It should now be possible to have the root NFS mounted over a USB Ethernet
adapter.
2000-03-14 23:13:12 +00:00
augustss 072f9f5b69 Some whitespace changes. 2000-03-14 22:37:55 +00:00
jdc e8a33a63d1 Add port power management ioctls. 2000-03-14 21:24:54 +00:00
jdc 48ba774212 Fix RCS ID.
Add port power management.
2000-03-14 21:23:45 +00:00
jdc 797ac20035 Add power management hooks. 2000-03-14 21:20:51 +00:00
jdc fa4417ef0c Add enable/disable and power management hooks for serial ports.
Port states : always on / on when open (default) / always off
2000-03-14 21:18:27 +00:00
kleink e2a9e82243 Add a descriptive comment to previous. 2000-03-14 19:16:03 +00:00
oster 1bad2e1909 Add the RAIDframe device major to the machine-dependent config files
so that the right entries get added to dev_name2blk[].  Needed for / on RAID.
(Whoops!  I missed checking these in when adding the RAID_AUTOCONFIG stuff.)
2000-03-14 15:56:51 +00:00
soren 667929def5 KNF comment. 2000-03-14 14:11:06 +00:00
soren 9ec86df3dd Fix typo. 2000-03-14 14:10:08 +00:00
soren eb9d73ce81 Actually use KSEG1 offset for KSEG1 addresses in kvtophys().
From Jeff Smith and Ethan Solomita at Geocast.
2000-03-14 14:08:55 +00:00
fvdl 563d336e44 Don't immediately return in ffs_fsync if there appears to be no data
to flush if it's a vnode on a softdep filesystem. softdep_sync_metadata
may still need to do some work.
2000-03-14 13:06:29 +00:00
enami 60ed7cfb2b Simplify the code a bit. 2000-03-14 10:26:10 +00:00
enami 70b8e188ee Don't think that a card is inserted if there is a card already in the slot.
Note that powerdown hook calls pccbbintr so that it detect card insertion or
removal during suspension.
2000-03-14 10:23:16 +00:00
enami d454505125 Cosmetic change. 2000-03-14 10:20:09 +00:00
sato 0a00ace3f7 some buttuns map to key codes which the button mean. 2000-03-14 08:37:31 +00:00
uch 6219354e8c sync with fb->hpcfb, btnmgr changes. 2000-03-14 08:31:07 +00:00
sato 16d7136b4c change about debug print.
CVS
2000-03-14 08:26:42 +00:00
nisimura 65da099cb1 Unnecessary to enclose device driver body with #if NASC > 0. 2000-03-14 08:23:29 +00:00
sato b76ec51696 - toggle CONFIG_HOOK_BUTTONEVENT_POWER event.
- change about debug print.
2000-03-14 08:23:24 +00:00
nisimura 2eb68c00d2 Respect video console colour designation by configration file. 2000-03-14 08:04:06 +00:00
nisimura 80c0893a8b Switch to improved flexible video console text rasterizer provided by
rasops and wsfont.
2000-03-14 06:25:21 +00:00
nisimura 8bf44847a8 Fix DEC3000/300 TC slot numbering. There is an address space hole
between two TC option cards and 3 builtin TC devices.  Was uncovered by
mrg's change made at Nov 1999 and pointed by tsutsui.
2000-03-14 05:53:33 +00:00
nisimura 6f5486c425 Switch to MI sfb (PMAGB-B) TC framebuffer driver which sports faster
text rendering assisted by SFB ASIC.
2000-03-14 05:34:04 +00:00
nisimura 8de02d3a76 - Comment out cfb (PMAG-B) 1024x768 framebuffer.
- Have Gallant19 font by default.
2000-03-14 05:31:16 +00:00
nisimura ae493d8845 Resolve LP64 issues. 2000-03-14 04:23:14 +00:00
nisimura b3a2990ce5 Redo the previous commit; duplicated lines. 2000-03-14 02:55:04 +00:00
nisimura 38ed3db66f Synchronize with recent progress of GENERIC. 2000-03-14 02:53:04 +00:00
thorpej 297455cbe2 Pick I/O before Memory space. 2000-03-14 02:08:21 +00:00
tsarna e58bd0c365 Regen 2000-03-14 01:46:56 +00:00
tsarna 67027b1103 Add product ids for some VIA Technologies VT82C686A southbridge devices. 2000-03-14 01:45:11 +00:00
enami b3cf850817 Fix typos in comments. 2000-03-14 01:29:30 +00:00
soren 735236ed02 Fix doubled 'the the' in comment. 2000-03-14 00:04:19 +00:00
soren 95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
cgd 49389b9817 tabbing consistency on the 3c1 entry 2000-03-13 23:36:02 +00:00
augustss e2850da406 Regen. 2000-03-13 21:17:32 +00:00
kristerw ce56ba78b7 Make the inline asm conform to what gcc thinks they should look like (per
discussions in http://gcc.gnu.org/ml/gcc-patches/1998-11/msg00004.html)

Approved by fvdl.
2000-03-13 21:10:24 +00:00
cgd 5402c76d3e add an entry to the product table for the 3C1. This seems to work,
at least as necessary to pull out the MAC address, etc.  Not actually
tested xmit & rcv yet.
2000-03-13 20:32:28 +00:00
cgd 8409d84d62 regen 2000-03-13 20:31:23 +00:00
cgd 00a2570a2e Add 3com Megahertz 3C1 10Mbps LAN CF+ Card 2000-03-13 20:30:24 +00:00
jdolecek 52b9123e1a note lacking sysinst support 2000-03-13 19:00:28 +00:00
uch 9616fd8002 no longer required. 2000-03-13 18:56:40 +00:00
jdolecek 70a3b602bd add MOUNT_NTFS to CTL_VFS_NAMES macro 2000-03-13 18:52:06 +00:00
uch 00363a82c8 sync with hpcfb. 2000-03-13 18:49:15 +00:00
ad f91ce51084 Regen. 2000-03-13 17:24:14 +00:00
ad e22c4b3d1f Add a bunch of Compaq array controllers. 2000-03-13 17:23:26 +00:00
augustss 9f0c40cff1 Add Palm serial adapter. 2000-03-13 17:14:27 +00:00
tsutsui 97970bb544 Reduce memory disk size and remove some options. 2000-03-13 12:58:58 +00:00
martin 8ba340d655 Do the same as biosboot does.
This makes it possible to create serial console dosboot.com's via uncommenting
the appropriate Makefile options.
I needed this when testing the SMP test kernels at work.
2000-03-13 10:51:22 +00:00
martin 112137cd30 Added Artec/Ultima A6000C scanner to the quirks table (no LUNs). 2000-03-13 09:56:26 +00:00
onoe c9af54bf14 Add SIOCGDRVSPEC to get driver specific parameters in addition to the
current definition of SIOCSDRVSPEC.
2000-03-13 05:56:47 +00:00
mycroft b27007be2c Make dependall work. 2000-03-13 03:25:20 +00:00
sato 54dab7a0d1 add BTN_COVER for MC-R520. 2000-03-13 01:57:06 +00:00
sato fd697ef8aa add PWCTL_LCDLIGHT for MC-R300 2000-03-13 01:54:39 +00:00
sato f9dc1cca42 add CONFIG_HOOK_POWERCONTROL_LCDLIGHT 2000-03-13 01:52:00 +00:00
sato 035f58c823 HPC/PsPC keyboard types. 2000-03-13 01:46:44 +00:00
nathanw a7f01b4816 Fix DMAADDR():
Return the mapped address of the block, not the kernel address.
A uhci device now finds devices on my pc164.
2000-03-12 23:10:29 +00:00
augustss b8b53d87db Avoid accessing the device if it is dying. 2000-03-12 21:57:50 +00:00
augustss ce6f0100c1 Remove extra \n in attach message. 2000-03-12 19:16:48 +00:00
veego 347a1f736e Reverse the mapping of the control/status registers. Use I/O before MEM.
My card works now on a TI1220 chipset. Approved by Jason.
2000-03-12 17:05:23 +00:00
uch a57fa19957 change debug message. 2000-03-12 15:42:43 +00:00
uch 44b86d33d6 recognize UCB1100 id. 2000-03-12 15:36:11 +00:00
uch ba8565be98 add WINCE_DEFAULT_SETTING and IT8368E_DESTRUCTIVE_CHECK for debug. 2000-03-12 15:35:29 +00:00
uch 6c57f806b1 sync with btnmgr change. 2000-03-12 15:28:12 +00:00
takemura dc7c050b3b Add wsmux device which is real device in /dev. 2000-03-12 13:46:27 +00:00
takemura b0650cbf17 Change btnmgr to wskbd device from pseudo device. 2000-03-12 12:08:16 +00:00
itojun dcec402dc9 initialize rn with 0, just to be sure 2000-03-12 11:58:15 +00:00
takemura 2996ac1c02 Bivideo utilize platid mechanisum for probing. 2000-03-12 11:46:44 +00:00
mycroft e750135b5e A few things:
* Initialize PCIC_INTR and PCIC_CSC_INTR on all chips, not just TI.
* Leave card detect interrupts enabled in PCIC_CSC_INTR.  (This requires
  reading PCIC_CSC in the interrupt handler on some chips, so do that too.)
* Leave PCIC_INTR_ENABLE set, as some chips require this to post card detect
  interrupts while in PCMCIA mode.
* Leave PCIC_INTR_RESET (which is inverted) set at all times *except* when
  powering up a socket, as some chips will use it to drive RESET# low even
  while a CardBus card is in the slot.

This makes PCMCIA and CardBus cards works with some TI chips.  Cross-checked
with a Toshiba ToPIC 95B.
2000-03-12 11:31:53 +00:00
drochner 30f73f1831 support bus probes a la "badaddr" and VME interrupts, fix error handling
after mapping problems
2000-03-12 11:23:06 +00:00
drochner e135f943fa add support for DMA mapping, bus probes ala "badaddr" and VME interrupts,
improve diagnostic output
2000-03-12 11:21:02 +00:00
takemura c12028016f Add makefile to install hpcfb.h. 2000-03-12 06:40:16 +00:00
sommerfeld f6ec059d2e add newline at end of last line. 2000-03-12 05:35:37 +00:00
nathanw 1203bdcbb3 Bus_space-ify TGA register accesses.
(raster operations are still using pointer-based access)
2000-03-12 05:32:29 +00:00
itojun 7560717e93 undo interface addition attempt if in6_ifinit() fails.
without it, :: will be kept if in6_ifinit() fails.
2000-03-12 05:23:07 +00:00
takemura e9619d5d21 New frame buffer driver 'hpcfb' and built in video controller 'bivideo' 2000-03-12 05:04:44 +00:00
itojun 9f8cac1f16 undo interface address addition attempt, when in_ifinit fails.
(this basically avoids memory leakage)
2000-03-12 05:01:16 +00:00
takemura 058d87a788 Add a new frame buffer identifier for the hpcmips. 2000-03-12 04:59:24 +00:00
mycroft 602faa83a8 Do *not* fiddle with the serial/parallel IRQ mode selection on TI chips.
Without extensive probing, we cannot possibly know that we're doing the right
thing.

Also some stylistic changes.
2000-03-12 04:34:29 +00:00
mycroft 781b535703 Revert the previous change. 2000-03-12 04:27:12 +00:00
mycroft c7a13f6116 Revert the previous change. It does not match the commit message *and* was
incomplete (and probably quite broken).
2000-03-12 04:25:57 +00:00
bouyer 31a775880b lfs_truncate: handle synlinks with length > maxsymlink_len as regular files.
For symlinks > 60 chars we were bzero'ing part of (struct inode) past the
actual inode struct, corrupting memory following the current (struct inode)
resuling in a 'panic: pool_get(lfsinopl): free list modified' later.
This could also be the cause of random panics. With this fix LFS seems to be
useable for me now.
2000-03-12 01:45:01 +00:00
thorpej 5c64f2064d Add missing sc_pil_intr_enable member to pccbb_softc.
XXX Double check this, please.  The code appears to only use it as a
boolean, but...
2000-03-12 01:15:04 +00:00
jdolecek 27fe6c0aee regen 2000-03-11 16:13:39 +00:00
jdolecek d01b78affd Add id for Alliance AT25, as sent by Dave Sainty in kern/9596. 2000-03-11 16:13:14 +00:00
shin 53cff1c1e5 fix typo. 2000-03-11 09:11:33 +00:00
shin 531586bc96 fix frame buffer type (normalized to 'black on white'). 2000-03-11 09:05:17 +00:00
shin a56d95d08b fix PV-6000/C-1000 keycode mapping. 2000-03-11 08:53:33 +00:00
shin b7a1ee6c84 configure controller 0 only (workaround for phantom PCIC). 2000-03-11 08:51:55 +00:00
soren 2d525b16dd The shortened 1371 reset delay in revision 1.32 doesn't seem to be
quite enough for my 1373, so increase it some.
2000-03-11 06:42:37 +00:00
perseant 61fa9e1409 Move vinvalbuf's check for dirty blocks into ffs_fsync, to ensure that
mode and ownership bits are flushed to disk before the vnode is
reclaimed.

The check, introduced in the softdep merge, assumes that if no blocks
are dirty, no file data *or metadata* needs to be flushed to disk.  This
is true of ffs, but is not true of lfs, and may not be true of other
filesystems.

Tested by myself and Bill Squier <groo@cs.stevens-tech.edu>.
2000-03-11 05:00:18 +00:00
thorpej 0fcf68825f Back out previous, and adjust a comment. 2000-03-10 22:39:03 +00:00
bouyer b58bf3c7bb Don't reset cp->hw_ok ro 0 when cp isn't initialised in cy693_chip_map()
(used only in failure case). Pointed out by Wolfgang Solfrank.
While I'm here correct indentation.
2000-03-10 21:21:48 +00:00
tsutsui dc259a36a2 Use CTRL_AST interrupt to handle asynchronous trap. 2000-03-10 19:06:43 +00:00
minoura 37132adf3f Sync. with news68k/news68k/mem.c:1.2. 2000-03-10 16:28:56 +00:00
itojun 673e8e6fad move IPPROTO_DONE to IPPROTO_xx group 2000-03-10 15:30:55 +00:00
itojun 8937ddef33 do not touch radix_node with RNF_ROOT on route_output(). this can
cause kernel panic (by non-root invocation of route(8)) on certain
routing table setup.
KAME PR: 217
2000-03-10 14:47:12 +00:00
kleink fc34e21eac Add an EILSEQ code (C99, first appeared in C90/AMD1), and update message
catalogs where possible.
2000-03-10 13:58:59 +00:00
haya 173f823e3a Only apply power on 3.3 V CardBus card (there are no 5 V CardBus card.) 2000-03-10 11:08:49 +00:00
sato 06f85d40f0 change about VRIPDEBUG. no action changes. 2000-03-10 09:18:00 +00:00
sato 67e7cb40b1 fix print message when #undef VRGIUDEBUG and change a little. 2000-03-10 09:05:01 +00:00
thorpej 7e044bd4e5 Move pretty much all of the PCI configuration goo into a separate
function.
2000-03-10 07:26:41 +00:00
thorpej 370bc1832b Normalize the copyright notice (TNF copyrights should *always* match
the appropriate template), and run through indent.
2000-03-10 07:11:47 +00:00
thorpej 0fef451485 Pull the code that take the Tulip out of powersave mode into a separate
function.
2000-03-10 06:55:09 +00:00
thorpej f76ce3b475 Only poll for bell completion if we're calling in from cnbell(). Fixes
a problem reported by Lennart Augustsson.
2000-03-10 06:10:34 +00:00
groo 0a77d41f4f clean up lm0 example 2000-03-10 06:03:18 +00:00
onoe cf32e2713c Adopt the macro name change of if_ieee80211.h.
also fixed the value for receiving packets in infrastructure mode,
while no one has been tested with.
2000-03-10 05:47:42 +00:00
onoe 85656424da Rename the macro IEEE80211_FC1_RCVFROM_XXX to IEEE80211_FC1_DIR_XXX
and fix the value to be consistent with IEEE 802.11 spec.
The only customer of this macro is if_ray driver for now.
2000-03-10 05:44:23 +00:00
thorpej 0391e3393f Slight change to the SROM size printf. 2000-03-10 02:46:39 +00:00
nisimura 4c043eb094 Arrange 'vmstat -i' to show 'optslotN'; for interrupt counts of TC slot N
as well as DECsystem 5100 optional serial card slot N.
2000-03-10 01:31:22 +00:00
sato 79d83d72e1 printf -> DPRINTF
vrisa_debug = 0 by default.
2000-03-10 01:30:06 +00:00
enami 01a5f6c995 Create new kernel thread to issue statfs(2) system call to check free
disk space rather than doing it in timeout handler.  This fixes long
standing bug that accounting file can't be put on NFS file system (so,
e.g, we couldn't turn on accounting on diskless system).
2000-03-10 01:13:18 +00:00
matt 9f86839658 change Mb/s to MB/s (Megabit to megabyte). 2000-03-09 23:19:26 +00:00
scottr 87bf486935 Back out previous; it's now dead code. 2000-03-09 23:15:23 +00:00
cjs 0aaf8765ad Add reminder to add stuff to ALPHA as well as this. 2000-03-09 22:27:26 +00:00
scottr d5f475149c The last change has proven unreliable. Attack the problem differently;
assume that the address we have is the correct PA if we can't
figure it out by groveling.  This time it really (yes, really)
works on the PowerBook 14x/16x/170.
2000-03-09 22:27:09 +00:00
cjs fe76319160 Add ident and RAID_AUTOCONFIG to bring up to date with GENERIC. 2000-03-09 22:26:41 +00:00
itojun 402493dee5 change member name for icmp6_filter, to be conformant to RFC2292.
From: Francis Dupont
2000-03-09 21:26:16 +00:00
soren c70220f2a2 Move PCIIDE_CHANNEL_NAME macro to pciidereg.h. 2000-03-09 20:26:31 +00:00
thorpej 0bcbafe0ee Correct the number of arguments to wsdisplay_set_cons_kbd(), for the
changes I made for cnbell().
2000-03-09 18:59:27 +00:00
drochner 0542cec055 put "#ifdef __alpha__" around "alpha_mb()" calls
(I know the driver is useless without console initialisation, but it
should at least compile.)
2000-03-09 18:40:36 +00:00
hubertf f3f4e44c39 fix typo 2000-03-09 16:49:22 +00:00
ad 5af90382c5 Add missing chrtoblktbl entry. 2000-03-09 11:19:30 +00:00
jdolecek 24ea2caf14 regen 2000-03-09 09:53:03 +00:00
jdolecek 3abb87c0f5 Add Conexant SoftK56 PCI Software Modem, Sony CXD3222 OHCI i.LINK(IEEE 1394)
PCI controller, Sony Memory Stick I/F Controller
Ids send by John Hawkinson in kern/9588
2000-03-09 09:50:49 +00:00
garbled ea089cf90c New features:
tctrl now initializes the state of the internal LCD icons.  The icons
are unprogrammed at boot time.  This incidentally makes the DC-POWER icon
work.

Fixes:
Fix my stupidity in the ENVSYS stuff, and actually follow the API.
2000-03-09 07:04:08 +00:00
groo 7e567738f2 support rfact. use manufac. suggested resistor values by default
clean up some comments
2000-03-09 04:20:58 +00:00
groo 7e6d7b8613 use bus independent probe 2000-03-09 04:19:03 +00:00
groo ed0b72db8f Add rfact multiplication factor for DC voltage sources
Clean up formatting (fit in 80 columns)
2000-03-09 04:13:58 +00:00
groo 752c98f8ea Add (commented out) lm driver examples 2000-03-09 04:12:42 +00:00
matt ebe08edbb2 add VS400 scsi attachment + a few other things 2000-03-09 02:05:07 +00:00
matt 57032be837 disable scsi for ka49 until sgmap is adapted to it. 2000-03-09 02:02:12 +00:00
matt 082a04f053 don't enable sgmap on ka49 yet. 2000-03-08 23:50:51 +00:00
matt f21e750db2 only have vmapbuf/vunmapbuf do anything on the ka46/48/49. 2000-03-08 23:49:10 +00:00
mhitch 5a9b9df419 Do the interrupt dispatch somewhat differently than the previous fix.
This one is more in the spirit of incorrect version which was trying
to shorten the interrupt path.  This probably isn't quite as fast as
using a switch() statement to dispatch the interrupts, but should be
a little faster than testing for each of the possible 6 interrupt
conditions.
2000-03-08 18:09:27 +00:00
augustss e0d3ede01c Get the status right when a polled transfer times out. 2000-03-08 15:34:10 +00:00
augustss 07574c3239 Add a debug message. 2000-03-08 15:33:38 +00:00
augustss 45f32a77f5 Clean up code a little and add some more debug messages. 2000-03-08 15:33:24 +00:00
takemura fe02fcfe1e GENERIC configration includes Cassiopeia E-55 CF card support. 2000-03-08 14:53:33 +00:00
jdolecek b1e34812e4 Fix obvious off-by-one error in db_output().
Fixes kern/9570 by John Hawkinson.
2000-03-08 08:31:33 +00:00
mhitch 0641e677c4 Using interrupt bits in a switch statement doesn't work very well if more
than one interrupt bit is set (unless you do some fancy case values).
Check each interrupt bit individually and process the interrupt if set.
5000/200 doesn't hang shortly after booting now.
2000-03-07 23:41:35 +00:00
kleink ad7dbd825c Define ISO C99 (unsigned) long long (min, max) symbols. 2000-03-07 19:33:00 +00:00
kleink 0c7df56c40 Define ISO C99 (unsigned) long long (min, max) symbols.
VS: ----------------------------------------------------------------------
2000-03-07 19:31:50 +00:00
kleink a9ebf7bb8c Define ISO C99 (unsigned) long long (min, max) symbols. 2000-03-07 19:31:49 +00:00
groo af00b7b880 split probe into generic and bus specific 2000-03-07 18:39:14 +00:00
tsutsui 56423f59aa Use b_cylinder as defined in sys/buf.h. 2000-03-07 15:59:24 +00:00
tsutsui d16c6f3272 Use DISKPART/DISKMINOR/DISKUNIT instead of dkpart/dkminor/dkunit. 2000-03-07 15:55:14 +00:00
tsutsui d9d840d522 - Remove unnecessary prototype declaration of readdisklabel().
- Use DISKPART/DISKMINOR/DISKUNIT instead of dkpart/dkminor/dkunit.
2000-03-07 15:35:42 +00:00
haya 4398e0bd07 Fix CardBus device number. Though CardBus device number should be 0,
the value of bridge's function number was assigned to the device
number.
2000-03-07 09:36:52 +00:00
scottr 6755970bcf Low-level drivers, like the Power Manager driver, can get us into a major
funk when they misbehave and give us unexpected results.  Specifically:

 - Don't assume that the first free slot is at the top of the table if
   we can't find one.
 - Don't increment ADBNumDevices when backfilling "holes" left by devices
   that didn't respond to a TALK R3 during the initial device scan.
 - Don't assume that an address reassignment worked; make sure something
   responds on the new address before plowing forward.
 - If after device reassignment there are no free slots, make sure to
   indicate this fact.
 - Failing all else, handle the situation where we run out of slots in
   the device table -- which now should "never" happen -- gracefully.

While the Power Manager driver still sometimes misbehaves, it shouldn't
cause the system to crash/hang due to us walking off the end of the
device table.
2000-03-07 06:35:22 +00:00
thorpej d315d42657 Back out part of 1.104 which isn't actually needed. 2000-03-07 05:39:57 +00:00
mycroft 5a212f7999 Fix a splx() botch or two. 2000-03-07 04:58:35 +00:00
shin 5913106c36 add '%INCLUDES'. 2000-03-07 04:17:27 +00:00
enami c1b54794fc Add missing `cnt++'. 2000-03-07 03:37:39 +00:00
enami 7ce8a9f46b Also, fix indentation in previous commit. 2000-03-07 03:34:52 +00:00
oster 7c57ac56d7 Cleanup a couple of function declarations. No functional changes. 2000-03-07 03:09:47 +00:00
oster 51ffb0924c Create a new rf_close_component() to handle vnode operations for closing
components.  Teach rf_UnconfigureVnodes() how to use it, and tell
the copyback and reconstruction code about it too.
2000-03-07 02:59:50 +00:00
oster ddebc1cad0 Move rf_UnconfigureVnodes to rf_netbsdkintf.c where it will be more at home.
Add prototype to rf_kintf.h, and nuke old prototypes from rf_disks.c and
rf_driver.c .
2000-03-07 02:28:05 +00:00
oster 33a55d022b rf_ protect the component label print routine, and make it more easily
available to the rest of RAIDframe.
2000-03-07 02:12:13 +00:00
oster dbf5d1f7a6 Nuke unused code. 2000-03-07 01:54:29 +00:00
soren dfaacf6eab Fix bug in previous. 2000-03-07 01:08:55 +00:00
thorpej 8f8714687b Reenable the code that clears SLEEP and SNOOZE from the CFDA register. 2000-03-07 01:08:47 +00:00
soren 6cc1408bca Only print SROM size if TLP_DEBUG. 2000-03-07 01:06:12 +00:00
soren 2f1aff2da3 Garbage collect MIPS_SR_INT_ENAB/MIPS_SR_INT_ENA_CUR definitions. 2000-03-07 01:05:48 +00:00
mycroft 4887635a10 A few things:
* Take advantage of the tulip_read_srom() changes.
* Don't frob the so-called `CFDA' register.  We're really looking for the
  PMCSR, which is in a different location anyway.
* Don't panic if we detach an interface for which we never called tlp_attach().
2000-03-07 00:43:36 +00:00
mycroft 5eee9ca94c Determine the size of the SROM by probing the chip using the standard Microwire
protocol.  Eliminates the need for srom_quirks and some other trash.
2000-03-07 00:39:17 +00:00
mycroft 064b1bd2e9 Fix obvious typo. 2000-03-07 00:33:13 +00:00
mycroft 8b13d21260 Do a CARDBUS_BM_ENABLE to be sure. 2000-03-07 00:32:52 +00:00
mycroft de8398315a Fix an obvious bug that caused I/O space to never be freed.
Also, don't use rbus_space_free() directly.
2000-03-07 00:31:46 +00:00
mycroft bcdcb370e5 Called the power function even for 5V cards. This at least gives the power
a chance to stabilize before we frob the card.
2000-03-07 00:30:57 +00:00
matt ebbd936b2c Chnage chip freq to 25MHZ. panic if dmaaddr is not in the kernel's
address space.  fix some printfs.  (reads now work!)
2000-03-07 00:08:42 +00:00
matt 10f359a6b5 clear the sgmap that was allocated 2000-03-07 00:07:16 +00:00
matt e8c7c2f842 add real vmapbuf/vunmapbuf routines. needed for VS4000 SCSI support. 2000-03-07 00:05:59 +00:00
matt e42cc6e32e remove some unsed variables. make a bit efficeint. 2000-03-07 00:04:13 +00:00
thorpej 42144199a1 - Make the pcppi and pckbd drivers cooperate a little more -- pckbd provides
a call to hook up a bell-ringer (since the keyboard itself has no bell).
  This eliminates the need for #ifdefs for the bell-ringer in the pckbd
  driver.
- Add cnbell() support to pckbd.
2000-03-06 21:40:08 +00:00
thorpej da4dc67d3e Add cnbell() support. 2000-03-06 21:37:16 +00:00
thorpej a183d34f04 - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
thorpej 57aae5ce02 On second thought, only set a default baudrate for "ethernet" if one
isn't set already.
2000-03-06 21:03:46 +00:00
thorpej 91c44a72b8 Set ifp->if_baudrate as appropriate. 2000-03-06 21:02:37 +00:00
thorpej a6f861574a No longer necessary to futz with ifp->if_baudrate here. 2000-03-06 21:02:00 +00:00
augustss 41aade98ba Generate better error codes on bulk write. 2000-03-06 20:59:17 +00:00
augustss 119a2a3a80 Remove irrelevant comment. 2000-03-06 20:58:39 +00:00
augustss e0cb11e30e Use macros from usb.h instead masking out bit explicitely. 2000-03-06 20:58:18 +00:00
thorpej ad61d101be Factor out the tick handling code into a common function, and send
rt_ifmsg's when the link speed or link status changes.
2000-03-06 20:56:56 +00:00
thorpej b99cf790df - Initialize ifp->if_baudrate to a sensible value when the interface is
attached.
- Add ether_crc32_be() and ether_crc_le(), common functions for computing
  the Ethernet CRC on arbitrary length buffers.  Nothing uses them yet,
  and these should be double-checked and probably re-implemented as
  table-driven functions.
2000-03-06 20:54:41 +00:00
thorpej c2c2f491bc Use the new macros in if.h for setting ifp->if_baudrate. 2000-03-06 20:52:12 +00:00
thorpej 7e0978a583 Initialize ifp->if_baudrate to a sensible value when the interface is
attached.  XXX Need to double-check this one.
2000-03-06 20:51:27 +00:00
thorpej 877704d33e Add ifmedia_baudrate(), which returns a value suitable for ifi_baudrate
given a media word, or 0 for unknown.
2000-03-06 20:50:29 +00:00
thorpej 0f5c059d1f - Add link status to if_data, so that routing daemons and other interested
parties can easily know the state of a link.
- Define an interface announcement message for the routing socket so that
  routing daemons and other interested parties know when an interface
  is attached/detached.
2000-03-06 20:49:00 +00:00
itojun 6a70fada85 allow SIOCDIFADDR with AF_UNSPEC address by default, until we fix ifconfig(8).
(should be COMPAT_43)
2000-03-06 19:33:13 +00:00
kleink 5d617390f9 Make pre-1.5 compatibility structures being defined conditional on _KERNEL
as well.
2000-03-06 18:55:10 +00:00
itojun 6ac3fc2a55 beautify APM_DISABLE_INTERRUPTS line (s/options\t/options \t/) 2000-03-06 18:45:42 +00:00
bouyer c34cce88c4 Add support for the AMD 756 DMA/UDMA IDE controller, provided in
PR kern/9536 by Dave Sainty.
2000-03-06 18:02:26 +00:00
takemura 5c2ef51018 Add '\Storage Card1\netbsd'. 2000-03-06 13:24:12 +00:00