castor
813222c472
Allow pattern matching for symbol string to handle GCC's output for mips,
...
where strings are output as
.ascii "foo\000"
instead of
.ascii "foo\0"
1998-11-25 06:10:19 +00:00
nisimura
53ac67d9b1
- Fix two bugs; inst_call() is supposed to check OP_SPECIAL opcode with
...
either OP_JR function code or *OP_JALR* function code (not OP_JAL opcode).
insn_unconditional_flow_transfer() was to read an unintialized variable.
Those MD DDB routines seems not useful work so far.
1998-11-25 01:14:48 +00:00
drochner
5888c5ef44
a small optimization for the compat interrupt handling, possible after
...
channel_softc is within pciide_channel
1998-11-24 19:54:20 +00:00
kleink
799ebea61d
Need declarations of defined inlined spl/sr functions.
1998-11-24 17:07:54 +00:00
kleink
cb37e264d2
Need <sys/device.h> to bring configure() declaration in scope.
1998-11-24 16:48:26 +00:00
leo
dee282eb12
You also need intr.h, psl.h, pte.h and vmparam.h to build the world...
1998-11-24 15:16:48 +00:00
leo
d40f376b56
Implement BUFCACHE option as suggested by lukem.
1998-11-24 15:07:33 +00:00
leo
a3f9798019
Make compile with -DDEBUG
1998-11-24 15:05:53 +00:00
leo
f65666430f
Pull-in device.h for configure() prototype.
1998-11-24 15:03:31 +00:00
kleink
94696a9ac3
Add support for the BUFCACHE config option.
1998-11-24 13:19:48 +00:00
mrg
993fb9ff04
add some missing comment ends.
1998-11-24 13:18:42 +00:00
mrg
d4fb975471
bring a prom_printf prototype into scope.
1998-11-24 13:02:59 +00:00
mrg
ed2db65750
add WARNS=0 for now.
1998-11-24 12:56:55 +00:00
mrg
7ad164b566
use rm -f. this makefile needs to be fixed..
1998-11-24 12:56:40 +00:00
mrg
4e85f6d151
remove fixalign prototype, it is now elsewhere
1998-11-24 12:55:56 +00:00
mrg
0a61098abd
remove some dead variables.
1998-11-24 12:55:25 +00:00
mrg
1458c370fc
#if 0 pv_syncflags as it is not used. avoid comments in comments.
1998-11-24 12:55:06 +00:00
mrg
7fa9d2a08d
move now unsed variable under #ifdef NOT_DEBUG
1998-11-24 12:53:27 +00:00
mrg
06dfd0f985
#if 0 an unused declaration
1998-11-24 12:51:19 +00:00
mrg
0bd7e232e2
do not start comments inside comments.
1998-11-24 12:50:56 +00:00
mrg
0a3c644dbc
include db_interface.h, remove unused variable & add proto for db_uvmhistdump.
1998-11-24 12:50:27 +00:00
mrg
b066708a2e
add protos for switchtoctx, fixalign and emulinstr. XXX should all these be here?
1998-11-24 12:49:14 +00:00
mrg
5711320263
these are fpu_xitof & fpu_ftoxi in the code...
1998-11-24 12:48:14 +00:00
mrg
12f8528ba4
add a cast.
1998-11-24 12:47:24 +00:00
tsubai
ac7d3e6487
Add PIC definitions.
1998-11-24 11:17:17 +00:00
ender
15f2f5d901
Take emulated button state into account before handing off mouse events.
...
Fixes part of PR 6444. Tested by Frederick Bruckman (fb@enteract.com ).
1998-11-24 08:34:37 +00:00
tsubai
f917584d54
Add more delay in adb_reinit().
1998-11-24 08:26:50 +00:00
dbj
0a67f72c26
uncommented the "intrnames" definitions used by vmstat to
...
label interrupt counts.
1998-11-24 07:02:10 +00:00
sakamoto
28c9fd0c8c
Fix no check for negative offset in mmap.
1998-11-24 06:34:10 +00:00
mrg
3660a1e953
make sure we do not write more than 7.5k of bootblock.
1998-11-24 00:03:19 +00:00
kenh
1f676cda09
Implement the AT_READREG flag. This is needed for the CHECK POWER MODE
...
ATA command (among others).
1998-11-23 23:02:11 +00:00
kenh
48f2e0ae6c
Add a new flag to wdc_command: ATA_READREG. This will indicate that all
...
device registers should be read back into the wdc_command structure after
successfull command completion. Use this this in wdioctl() for
ATAIOCCOMMAND.
1998-11-23 23:00:26 +00:00
kenh
42d7790133
Add a new flag: ATACMD_READREG
1998-11-23 22:58:23 +00:00
mcr
4cb534cca1
added 82443BX_AGP_NOT as per kern/5847
1998-11-23 22:54:02 +00:00
wrstuden
f0559087e0
Changes to deal with mac serial ports having clock sources on DCD or CTS.
...
- When doing a first open, don't enable receive & status interupts before
the MD layer has had a chance to set things up.
- Enable logic to only enable DCD/CTS interupts if we are looking for/
expecting interupts on those pins. Disable otherwise.
- in zs_param, only pass up the state of ZSRR0_DCD if we have enabled
interupts on that pin.
Henry Hotz (<hotz@jpl.nasa.gov>) and Greg walsh <gwalsh@artec.com> have
tried these changes to get certain printers from hanging at boot. They
work in a 1.3.2 kernel for Greg.
1998-11-23 22:10:09 +00:00
christos
3ebca7fd4e
regen
1998-11-23 20:49:20 +00:00
christos
bb7d20f01a
add adaptec aha attachment
1998-11-23 20:48:34 +00:00
christos
f2bd402051
add adaptec aha attachment.
1998-11-23 20:47:51 +00:00
christos
1eebc10d76
add aha at isapnp?
1998-11-23 20:47:03 +00:00
scw
6861b95582
Get rid of memset() prototype, it's not used and egcs doesn't like it.
1998-11-23 20:45:26 +00:00
mrg
84826f1771
add installboot
1998-11-23 08:16:10 +00:00
mrg
cd3e42513b
add a sparc64 installboot script. just dd the bootblk to the right part of the disk. can be improved...
1998-11-23 08:15:11 +00:00
jonathan
89cad55ba4
Make rcons work, if configured, even when using serial console:
...
do rcons_connect() even if using a serial console.
identify first attached framebuffer as being `rcons' output device.
1998-11-23 04:26:15 +00:00
mrg
fdbb273f39
fix some warnings, and some not DEBUG problems.
1998-11-22 23:56:49 +00:00
pk
701d8366f0
Define `interrupt priority levels'.
...
XXX - for now, these arbitrary identifiers; NO INTERPRETATION IS DEFINED YET
1998-11-22 23:53:24 +00:00
eeh
4cf9a921c9
Move allocsys() back to cpu_startup(). We're no longer allocating it from
...
the locked 4MB TLB entry, but it solves the problem where large memory machines
overflow the 4MB TLB entry.
1998-11-22 23:38:53 +00:00
pk
cecf78e09d
Connect the PCMCIA bus.
1998-11-22 23:36:42 +00:00
mrg
4dd9bebb58
add two more prototypes. noted missing by mjacob.
1998-11-22 23:30:36 +00:00
pk
e40c5c3c20
Add busses: PCMCIA, MII, ATA
1998-11-22 23:22:26 +00:00
pk
2814b02ec8
Define STP4020 chipset driver by its nickname `nell'.
...
XXX - also define a `pcic' attribute here, so we can attach a pcmcia bus
1998-11-22 22:17:27 +00:00
pk
5e4ad115c3
The beginnings of a driver for the Sbus <=> PCMCIA bridge chipset STP4020.
1998-11-22 22:14:35 +00:00
pk
0f7176ff24
Remove unwanted inclusion of an isa header file.
1998-11-22 21:58:50 +00:00
pk
0800aaa223
Move the `wdc' device into `conf/files'.
1998-11-22 21:57:47 +00:00
pk
bc98f448b8
Turn the passed tag into "used" arguments.
1998-11-22 21:52:24 +00:00
ws
82fe9b4f90
The last fix in trap.c missed R2.
...
And correct the size of the fault buffer while being here.
1998-11-22 21:21:32 +00:00
augustss
32dd1a1d5a
Make sure the Endpoint Descriptor gets the correct maximum packet size.
1998-11-22 20:21:22 +00:00
eeh
3bb71e68c6
ofwboot.elf is now ofwboot.
1998-11-22 17:22:50 +00:00
eeh
2f274f97e5
Don't ask the firmware to find our partition because it doesn't understand
...
NetBSD disklabels and gets horribly confused.
1998-11-22 16:21:02 +00:00
tsubai
01a2fb8424
Fix typo.
1998-11-22 15:57:37 +00:00
oster
dd377fd943
Remove erroneous duplicate lines in cdev_sw[]. Now things are lined
...
up right and RAIDframe can find it's block device again.
1998-11-22 15:51:04 +00:00
drochner
1c0cc94837
Update for INT13 support.
...
XXX We can't easily emulate this here due to the 16-bit-pointer
call interface.
1998-11-22 15:44:03 +00:00
mrg
78db9d7d95
merge ipf 3.2.10
1998-11-22 15:17:18 +00:00
drochner
c48ea35c91
include missing SYSV option header - PR kern/6479 by Urban Boquist
1998-11-22 15:00:47 +00:00
drochner
1e2b2f29f2
one more (last?) wdc_channels adaption
1998-11-22 14:55:29 +00:00
mrg
d3224441a0
merge ipf 3.2.10
1998-11-22 14:41:29 +00:00
drochner
e1244719fd
oops - forget update for wdc_channels definition change
1998-11-22 14:36:38 +00:00
oster
a8e48ccd6e
Fix RAIDframe typo. (Reported by msaitoh@netbsd.org)
1998-11-21 23:41:13 +00:00
fvdl
c312dc3f08
Avoid looping forever with cards that can only use one I/O address,
...
and specify a 0 alignment.
1998-11-21 23:38:11 +00:00
scw
28b6542336
Fix misplaced comma...
1998-11-21 20:37:06 +00:00
tsubai
491966b273
When DSI occurs and pcb_onfault != 0, registers are incorrectly restored.
...
Fix this.
1998-11-21 20:18:47 +00:00
augustss
c73add02ca
Fix some typos.
1998-11-21 18:57:09 +00:00
drochner
152d52c171
headers for new hardware support in pciide.c. from Manuel.
1998-11-21 16:06:45 +00:00
drochner
9effbbe436
some restructuring, more or less to get support for weird IDE controllers,
...
eg the Cypress ISA bridge:
-put channel mapping into the chip specific part, unify with
channel_probe() into channel_map()
-use pointer to channel data as function call argument wherever possible
instead of the channel number
-allow the "compat" channel number to differ from the per-controller
channel number - for mapping and interrupt functions
-add support for SiS5598 and Cypress 82C693 chips
Mostly done by Manuel, I only contributed to the first 2 items.
1998-11-21 15:55:31 +00:00
drochner
3e38051bc5
in wdc_softc: access the per-channel data via a pointer array instead of
...
an array of fixed-sized channel_softc elements. This way IDE controllers
which more than 1 channel (pciide) can extend the channel data easily
for private needs.
To avoid the double dereference at runtime, change the argument of
wdcstart() to the channel data pointer instead of the array index.
1998-11-21 15:41:41 +00:00
tsubai
13a8c73bb6
Flush write buffer in ZS_DELAY().
1998-11-21 14:57:59 +00:00
chuck
cc2f45083b
update outdated an_swslot comments
1998-11-20 19:37:06 +00:00
drochner
7e21eb25d4
Set the p-v list head to NULL if there are no valid mappings.
...
This should be not necessary because the pv_pmap member is already set to
NULL in this case which should keep the pv_next pointer from being
followed. However, PR port-i386/5291 reports that this measure helps in
at least one case (VINO).
Reviewed by Chuck Cranor, final fix is functionally identical to the PR's
proposal.
1998-11-20 17:44:39 +00:00
leo
c9971df573
Follow the amiga vmparam.h, from Ignatios:
...
Yet another workaround for pmap bugs. Several reports on the port-amiga
list claim this helps with some big-machine situations.
1998-11-20 13:01:12 +00:00
leo
b981000a00
If the disklabel on the floppy says that there are more tracks and sectors
...
than the hardware is capable off, believe the hardware...
1998-11-20 12:58:13 +00:00
leo
6827fd2ff0
Checkpoint my work on et6000 support.
1998-11-20 12:56:09 +00:00
leo
396634e8c7
Adapt to new wd world-order.
1998-11-20 12:54:37 +00:00
leo
d8b37265bc
Fix parameters of uvm_unmap().
1998-11-20 12:48:13 +00:00
leo
c852714bf9
Make it compile with -DDEBUG again.
1998-11-20 12:46:51 +00:00
leo
394afce1c9
NWDC -> NWD (wdc.h -> wd.h)
1998-11-20 12:43:11 +00:00
tron
45d30cea9d
Sync with GENERIC.
1998-11-20 11:50:29 +00:00
itohy
6fca929d87
Moved the manual to share.
...
Added -L for libc.
Use `&&' instead of `;' for cd and print-objdir in order to avoid
infinite fork() if chdir failed.
1998-11-20 10:59:22 +00:00
mhitch
475a5c2afd
RZ25 disks seem to need a short delay after a start command; the test unit
...
ready right afterward succeeds, but the getsize following that failed with
a "not ready".
1998-11-20 06:24:02 +00:00
thorpej
7693f53714
Detach children in reverse order. We are more likely to be able to recycle
...
cloned unit numbers that way.
1998-11-20 05:20:20 +00:00
kml
ba30effcf8
Changes to support a HIPPI Framing Protocol device, which allows raw
...
HIPPI packets to be written without having to go through the network
stack.
1998-11-20 04:12:57 +00:00
ross
8d957efade
Sigh, shuffle the nsio ide frobber yet again.
1998-11-20 03:58:22 +00:00
thorpej
8c2f638d29
Add support for power management and lazy interrupt establishment to the
...
PCMCIA aic6360 attachment.
1998-11-20 02:12:15 +00:00
thorpej
792462c236
Add support for power management and lazy interrupt establishment
...
to PCMCIA IDE controllers (include PCMCIA flash cards).
1998-11-20 01:52:22 +00:00
thorpej
d0a4fb616f
Implement controller reference counting on ATA devices.
1998-11-20 01:23:52 +00:00
thorpej
4ba3417429
Implement reference counting for ATA adapters.
1998-11-20 01:22:37 +00:00
thorpej
6a60e078ee
Add adapter reference counting for SCSI and ATAPI devices.
1998-11-20 00:35:39 +00:00
kenh
510830d2c3
Rename WDCIOCCOMMAND (and related structures) to ATAIOCCOMMAND
1998-11-19 23:44:20 +00:00
kenh
5a79273062
Rename wdcio->ataio.h, as per ICB cabal discussion.
1998-11-19 23:41:09 +00:00
kenh
396aa17f77
Sigh, my bad. Check for chp->wdc being NULL before trying to deference it.
...
(I didn't realize the ISA wdc front-end doesn't fill in chp->wdc).
1998-11-19 22:50:21 +00:00
thorpej
baec89716d
Add a reference to the adapter when the scsibus is opened, and delete it
...
when it is closed.
1998-11-19 22:28:20 +00:00
thorpej
54b52fb5f6
Add a reference to the adapter before probing the bus, and delete it
...
once we are done probing.
1998-11-19 22:25:56 +00:00
thorpej
3b068a6c78
Adapt to the new scsipi_adapter interface.
1998-11-19 21:53:32 +00:00
thorpej
5f0577babc
Adapt to the new scsipi_adapter interface.
1998-11-19 21:43:00 +00:00
thorpej
e87fa217f4
Add support for reference counting and enabling/disabling SCSI and
...
ATAPI controllers. This will eventually be used for power management
of e.g. PCMCIA SCSI and IDE controller cards.
1998-11-19 20:08:52 +00:00
thorpej
afc84158d1
Back out revision 1.40. That change couldn't have POSSIBLY worked, since
...
when wdcprobe() is called, the wdc_softc pointer in the channel_softc
hasn't even been intialized!
1998-11-19 19:52:42 +00:00
kenh
9bc9937238
Add support for the WDCIOCCOMMAND ioctl. This allows the sending of
...
arbitrary ATA commands from user-space. Concepts mostly taken from
the implementation of the SCIOCCOMMAND ioctl.
1998-11-19 19:46:12 +00:00
kenh
e9c417a673
Definitions used by the WDCIOCCOMMAND ioctl. Mostly inspired by the
...
SCIOCCOMMAND ioctl.
1998-11-19 19:44:34 +00:00
mrg
db3051d720
fix problems in many d_mmap routines:
...
- returned EOPNOTSUPP rather than -1.
- no check for negative offset.
many of these fix potential security problems in these drivers.
XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
paddr_t (*d_mmap) __P((dev_t, off_t, int));
by someone!
1998-11-19 15:38:20 +00:00
he
db360b9524
Bump ramdisk size by 100 blocks -- ran out of space.
1998-11-19 11:43:57 +00:00
dbj
044d782820
Removed unused buserr and addrerr declarations.
1998-11-19 08:32:26 +00:00
nisimura
fec5fef8a5
- Fix an error in cursor color manipulation. 24bit RGB value was mistakenly
...
assigned to unsigned short variable.
- XXX PMAG-DV is supposed to emit virtical retrace interrupt, which can be
used for colormap/cursor update just like other TURBOchannel framebuffers.
1998-11-19 06:52:49 +00:00
jonathan
20cf682664
kernel config file for pmax install via ramdisk.
1998-11-19 06:05:11 +00:00
mrg
b4f6a27f69
comment how a diag test is possible broken.
1998-11-19 05:23:46 +00:00
mrg
d39ed4e552
check the return value of d_mmap before pmap_phys_address() gets hold of it.
1998-11-19 05:23:26 +00:00
kenh
1461c4fb20
__wdccommand_done() needs to call wdcstart(), otherwise you can run
...
into deadlocks when using wdc_exec_command().
1998-11-19 04:07:54 +00:00
thorpej
fd684d874c
Protect against multiple inclusion.
1998-11-19 03:45:39 +00:00
ross
3f24fce866
More include shuffling.
1998-11-19 02:53:47 +00:00
ross
b0f44850f5
Don't insist on an FFS if we are in contiguous block (-b) mode.
1998-11-19 02:44:40 +00:00
ross
d963824bdc
#include <machine/intrcnt.h>
1998-11-19 02:35:39 +00:00
ross
bc9cb58205
Fix interrupt map for baseboard bridge.
1998-11-19 02:33:37 +00:00
ross
47c613e7dd
#include <machine/alpha.h>
1998-11-19 02:29:49 +00:00
ross
4ea2865631
+#include <machine/alpha.h>
...
+#include <machine/intrcnt.h>
Also, this module gets the junk I/O IDE channel frobber that used to
be in dec_axppci_33.c, so it can be called for the eb64plus also.
1998-11-19 02:28:56 +00:00
ross
372977cf54
Nuke the final holdout of INTRNAMES_DEFINITION.
...
Do a nice gas.new .rept/.endr loop and also pad each string with spaces
in case a platform actually does want to rewrite the names.
G/C some EVCNT_COUNTERS stuff.
1998-11-19 02:27:29 +00:00
ross
b9fa3646cb
#include <machine/intrcnt.h>
...
#include <machine/alpha.h>
g/c some EVCNT_COUNTERS stuff.
1998-11-19 02:23:15 +00:00
ross
c6c1b0098f
#include <machine/alpha.h>
1998-11-19 02:22:01 +00:00
ross
ee226b43f1
Include <machine/alpha.h> and do not directly include <bus.h>
1998-11-19 02:20:07 +00:00
ross
7221bd8229
+#include <machine/alpha.h>
...
-#include <machine/bus.h> (done for you by alpha.h)
Take the junk I/O chip IDE channel frobber and move it to machdep.c.
1998-11-19 02:05:07 +00:00
ross
d3509bcc51
Clarify the 1000/1000A situation: two variation tables and an all-purpose
...
backup platform.family string.
1998-11-19 02:02:45 +00:00
ross
9b7ad6c70c
#include <machine/alpha.h>
1998-11-19 01:59:39 +00:00
ross
8470625657
New module to hold the alpha-specific prototypes that don't need to be
...
exported to the MI kernel. Almost everything here was formerly in cpu.h.
Optionally, this module could in the future be used to #include anything
that is always needed by arch/alpha modules.
1998-11-19 01:57:56 +00:00
ross
19a4c3110c
Rip out 70 lines of (all of) the port-alpha-specific decls and prototypes.
...
They should not be visible to the MI kernel and the MI kernel shouldn't
depend on this junk. Most of it moves to new module <machine/alpha.h>.
Leave badaddr() here, though, because it's used so widely.
1998-11-19 01:51:40 +00:00
ross
e2e3ee52ae
Nuke the giant ugly-as-sin per-platform INTRNAMES masterpiece.
...
I just cannot add one more platform without getting sick.
Instead, we do just one table for all platforms. More-or-less,
it was only the A12 that even named it's individual interrupts anyway.
Also, prototype set_iointr() here. It's a slightly odd place, but 10*
better than the old place it was, and this file is included by exactly
the perfect set of .c files for set_iointr() visibility.
1998-11-19 01:48:04 +00:00
ross
a68dbb068a
Stop including <machine/alpha_cpu.h>; we already export <machine/cpu.h>.
1998-11-19 01:42:37 +00:00
ross
da8b1017f4
"extern struct rpb *hwrpb" belongs here (duhhh)
1998-11-19 01:41:36 +00:00
thorpej
4e8bf2fa99
Make the attachment messages a little prettier:
...
com3 at pcmcia1 function 0 port 0x2e8-0x2ef: serial device
com3: ns16550a, working fifo
I.e. don't wrap the line.
1998-11-19 00:04:02 +00:00
thorpej
ac7560ad4a
Add support for hot-swapping PCMCIA serial devices.
1998-11-19 00:01:30 +00:00
thorpej
3e086bd63d
Add support for detaching "com" instances.
1998-11-18 23:58:52 +00:00
thorpej
eb8f1afb3e
Implement vdevgone(), to revoke all vnodes corresponding to the specified
...
type, major, (low minor...high minor).
1998-11-18 20:24:59 +00:00
kenh
58932a8415
Quirk out the first test in the beginning of wdcprobe(); the Vaio
...
CD-ROM drive doesn't like it for some reason.
1998-11-18 19:12:08 +00:00
thorpej
f50fecdeaf
Oops, fix uninitialzed variable in last.
1998-11-18 18:40:54 +00:00
thorpej
587f931901
Be a bit more precise about how we allow no deactivation support in
...
config_detach().
1998-11-18 18:40:08 +00:00
thorpej
3579ddab03
If the ca_activate entry point fails, make sure to restore the old
...
dv_flags.
1998-11-18 18:38:07 +00:00
thorpej
1d0f24882d
Now that the *_activate() functions don't do things which are attachment
...
specific, move them into the chipset drivers.
1998-11-18 18:34:52 +00:00
thorpej
257d3e31ae
Move the i/o window unmap and i/o space free into *_detach().
1998-11-18 18:15:56 +00:00
kenh
7faa4da4bc
Don't protect this with #ifdef _KERNEL
1998-11-18 16:32:29 +00:00
oster
b66ca92f4a
Initialize (to NULL) a variable in rf_CvscanPromote().
1998-11-18 15:13:51 +00:00
nisimura
4184d87669
- Fix cursor image handling bugs escaped in last commit.
1998-11-18 12:26:31 +00:00
pk
dee948f2d9
Increase the delay after touching the IOMMU control register by another
...
three no-ops (empirically verified by Robert Elz).
1998-11-18 12:07:47 +00:00
itohy
d8f63f8a88
Get pmap_extract() return value with paddr_t, not vaddr_t.
...
Some other minor changes stolen from hp300. :)
1998-11-18 10:05:35 +00:00
tsubai
099f099133
Don't send mouse events to wsmouse layer if wsmouse isn't configured.
1998-11-18 09:11:34 +00:00
sakamoto
d8d1762a15
Support frame buffer console initialized by the BootRom of the BeBox.
1998-11-18 09:05:18 +00:00
ross
19599f6e86
Various trivial LP64 tweaks to squelch some compiler warnings.
1998-11-18 03:09:20 +00:00
jonathan
fe83804dea
Add md (memory disk) hooks for pmax. ecoff kernel with 2MB ramdisk
...
tftp-boots on new PROMs. (3MB is too large).
1998-11-17 22:41:05 +00:00
thorpej
4d216414cf
Bump version to 1.3I (config_detach(), config_{,de}activate()).
1998-11-17 21:27:27 +00:00
thorpej
d088902264
Add detach and activate entry points. Mostly functional except for
...
#ifdef notyet'd if_delref() and if_detach(), which will be fixed up
when that code is committed.
1998-11-17 20:44:02 +00:00
thorpej
dd6750820c
Expose the "enable" and "disable" functions so that the front-ends can
...
access them.
1998-11-17 20:25:00 +00:00
mycroft
cb703f0332
If a channel has no drives, do *not* unmap its I/O regions.
...
It's not really safe to use them for anything else, and in legacy mode it
will just cause us to probe the channel again as an ISA device.
1998-11-17 17:59:14 +00:00
bouyer
0af9847a2d
The ATAPI-specific hack is not needed any more.
1998-11-17 14:46:26 +00:00
bouyer
0d0ff884e5
In atapi_wdc.c, issue a 'REQUEST SENSE' command when appropriate.
...
Return XS_SENSE when the full sense info has been retrieved, or
XS_SHORTSENSE if only the sense key was available (from the error register)
Make atapi_interpret_sense() deal with this, and call scsipi_interpret_sense()
for XS_SENSE. (XXX sd_interpret_sense() and the ioctl code needs to be made
aware of XS_SHORTSENSE too ! sense hanlding for these is now less broken for
devices that support 'REQUEST SENSE')
All the ATAPI devices I have access to seems to honnor the SENSE_REQUEST
command, but I suspect some ATAPI devices will not (althouh it's mandatory).
The code should be able to deal with this, but is untested ...
1998-11-17 14:45:39 +00:00
bouyer
00d93f776b
Rename scsi_interpret_sense() to scsipi_interpret_sense() and move it from
...
scsi_base.c to scsipi_base.c. Rename the functions from scsi_verbose.c
too, and rename the file itself. Cleaup includes too (scsi_*.h should not
be #included in scsipi_*.h files, which are supposed to be
common to atapi and scsi).
1998-11-17 14:38:42 +00:00
bouyer
b64b7c2964
New IDE xfer flag: C_SENSE, set by the ATAPI back-end sense info needs to
...
be retrieved.
1998-11-17 14:14:52 +00:00
mrg
e9b43366f3
add some shiny happy egcs braces
1998-11-17 12:11:27 +00:00
thorpej
0c3ca7b31e
Finish implementing interrupt-driven card insertion and removal support.
...
- Deactivate the card on removal and queue a REMOVAL event for the socket's
event thread to finish the detach.
- Queue an INSERTION event for the socket's event thread on insertion.
Implement a few missing infrastructure pieces to support this.
Hot swapping of PCMCIA cards now "works". (Not quite; things like network
devices need changes for their respestive subsystems. These changes are
coming soon...)
1998-11-17 08:49:11 +00:00
thorpej
ab1b371163
Implement config_detach(), mostly from Chris Demetriou, modified slightly
...
by Ken Hornstein and myself.
Add flags to struct device, and define one as "active". Devices are
initially active from config_attach(). Their active state may be changed
via config_activate() and config_deactivate().
These new functions assume that the device being manipulated will recursively
perform the action on its children.
Together, config_deactivate() and config_detach() may be used to implement
interrupt-driven device detachment. config_deactivate() will take care of
things that need to be performed at interrupt time, and config_detach()
(which must run in a valid thread context) finishes the job, which may
block.
1998-11-17 08:38:07 +00:00
mrg
de6cfc033a
don't need our own lkmenodev anymore...
1998-11-17 01:46:10 +00:00
mrg
84905a4350
provide lkmenodev prototype for LKM || _LKM
1998-11-17 01:41:06 +00:00
thorpej
fc44652721
Implement a kernel thread per PCMCIA socket to handle card insertion and
...
removal events.
1998-11-16 22:41:01 +00:00
thorpej
fade033791
Print out which IRQ is being used for which slot, when the interrupts
...
are established.
1998-11-16 22:35:18 +00:00
thorpej
d2afdb5b59
Fix some whitespace lossage, canonicalize some media names.
1998-11-16 19:13:31 +00:00
oster
cf5710c839
Added a (commented out) configuration line for the RAIDframe device driver.
1998-11-16 16:44:55 +00:00
tsubai
b3e8f6e5fe
Enable UVM by default.
1998-11-16 12:21:30 +00:00
bouyer
d74652866f
For ATAPI IDENTiFY, poll only for DRQ, some devices don't assert DRDY at this
...
point.
1998-11-16 11:25:41 +00:00
itohy
59bed57519
Oops, I should have been more careful about the last modification....
...
Since D-Link DE-650 is not the only exception, restore Linksys EC1 entry to the
previous position and move D-Link entry below that to make the source cleaner.
1998-11-16 08:17:01 +00:00
marc
c48ce4626f
Avoid irq 5 and 7, the most likely cause of problems on modern laptops.
1998-11-16 07:23:28 +00:00
eeh
a178ed6add
Fixup the last broken bits of the signal handling code.
1998-11-16 06:51:35 +00:00
lukem
0cd1643609
if INADDR_ANY is given in in_pcbconnect(), choose the ia_addr of the first
...
interface, not the ia_broadaddr. should fix [standards/5645] and [kern/6425]
1998-11-16 05:47:19 +00:00
dbj
a712d8ae87
Moved UVM define from GENERIC to std.next68k
...
Added -Wno-main to warnflags, if compiler supports it.
1998-11-16 04:37:56 +00:00
mrg
ae0c22f1b1
move vax "options UVM" from GENERIC to std.vax
1998-11-16 04:32:56 +00:00
mycroft
7eac22153a
Use types.h, endian.h and limits.h to configure the RAIDframe
...
types correctly for all hardware platforms.
1998-11-16 04:14:10 +00:00
mycroft
09093330b1
Add {LONG,WORD}_BIT and {DBL,FLT}_{DIG,MAX,MIN}.
1998-11-16 04:12:29 +00:00
jonathan
a3a77d9561
Add skeleton code to defer rcons console output to soft-interrupt time.
...
ifdef'ed out for now.
1998-11-16 00:10:39 +00:00
perry
0c20c72cf9
(mostly) fix kernel tags support. from Frederick Bruckman in pr-6445.
1998-11-15 20:36:30 +00:00
tsubai
dd918881b6
Restrict the length of return value within buflen.
1998-11-15 19:53:25 +00:00
tsubai
7c939afccf
RTC support for pmu (read only).
1998-11-15 19:41:33 +00:00
thorpej
88bc4b9f8d
Conditionally include the 4.4BSD-Lite2 compat vfs sysctl code.
1998-11-15 18:38:11 +00:00
drochner
1658ac64a8
fix the previous: "securelevel" in kernel only
1998-11-15 17:36:19 +00:00
drochner
ac9da044b8
fix misplaced parantheses (introduced in last commit), noticed by Sean
...
Doran and Wolfgang Helbig
1998-11-15 12:43:04 +00:00
jonathan
03b30a046d
* make scc_tty_init() callable when very cold: call scc_coldparam() directly.
...
Use scc_tty_init() in scc_consinit(). Declare scc_consinit() in sccvar.h.
* Remove last vestige of special-case console handling in sccparam() code.
* Call scc_consinit() from findcons scc_serial() console-setup.
Dont PROM for scc serial console at all.
1998-11-15 11:21:52 +00:00
jonathan
b6111d03f9
Add mainbus0 and cpu* lines to R4000 config.
1998-11-15 06:27:11 +00:00
jonathan
5ddadfcc95
Remove old model-specific config files.
1998-11-15 06:22:25 +00:00
mhitch
6317908feb
UVM is now the standard VM system on NetBSD/pmax.
1998-11-15 05:43:32 +00:00
chuck
281eb8b87a
remove bogus permission check in uvm_map_clean(). fixes mmap/msync
...
problem discussed/reported by jonathan and Andreas Wrede <andreas@planix.com>.
1998-11-15 04:38:19 +00:00
mhitch
549407b634
Change page modification emulation: don't fiddle with VM flags directly.
...
Track page modification status in the PV entry like the alpha, and let
pmap_is_modified() return current status back to the VM system. UVM now
works reliably.
Garbage collect the old pmap_attribute[] stuff.
1998-11-15 02:34:19 +00:00
hubertf
3f1c86b59e
compile with DEBUG=1
1998-11-15 00:01:24 +00:00
mhitch
f6adcd4690
Some CyberStorm MK I SCSI modules use the same product ID as the Fastlane.
...
Add a check for that product ID and not a Zorro III address.
1998-11-14 21:48:22 +00:00
drochner
047a7756d8
use mi register definitions
1998-11-14 16:31:34 +00:00
tls
da1c106b85
In 'highly secure' mode (securelevel >= 2), the filter lists may not be tampered with. It might be desirable to allow enabling of preset filter lists, but it seems too good a candidate for a denial-of-service attack, so we don't.
1998-11-14 07:42:37 +00:00
tls
6321478a33
At securelevel >=2, don't allow new mounts, only allow change from rw to ro.
1998-11-14 06:38:54 +00:00
dbj
87cb8573e1
Finished changes to use UVM on next68k.
...
Turn on UVM by default in GENERIC kernel.
1998-11-14 04:32:50 +00:00
briggs
0659054b8b
Make this compile _and_ link with DEBUG / ADB_DEBUG defined.
1998-11-14 03:20:47 +00:00
briggs
94125bb185
Allow this to compile with DEBUG defined.
1998-11-14 03:01:31 +00:00
thorpej
3e6164e173
Make a comment about what pcmcia_detach_card() should do.
1998-11-14 01:54:25 +00:00
thorpej
1d03badef0
Implement a way to queue kernel threads for creation after init,
...
pagedaemon, reaper, etc. Caller provides a callback function and
argument which will be called to create the threads.
1998-11-14 00:08:49 +00:00
is
be4fc8e1b9
Simplify program structure to save a few bytes.
1998-11-13 22:12:35 +00:00
thorpej
d23593a784
Make vfs_sysctl() work.
1998-11-13 20:15:32 +00:00
thorpej
a3574d12b6
Clean up the NFS sysctl variables.
1998-11-13 20:09:54 +00:00
thorpej
1eebbab4db
Some changes to make the vfs. sysctl toplevel work. Wow, we really need
...
a new sysctl interface.
1998-11-13 20:08:06 +00:00
thorpej
faf2211fef
{b,c}dev_decl(raid), like some other disk devices.
1998-11-13 20:04:11 +00:00
mycroft
1115f2e840
Er, NSIG is one *more* than the number of signals.
1998-11-13 17:23:52 +00:00
mycroft
d6ffecf67c
Oops; signal numbers are 1..NSIG, not 0..NSIG-1.
1998-11-13 17:12:54 +00:00
christos
9a95622add
cast _mcount args to u_long, to avoid lint warnings.
1998-11-13 13:50:52 +00:00
drochner
a0c0e7eff1
fix egcs warning
1998-11-13 13:47:56 +00:00
drochner
acdd660ace
fix callback type
1998-11-13 13:45:15 +00:00
christos
0da3503ec5
make sysctl newp argument const void * to avoid const castaway warnings in
...
many places in the source. Unfortunately I am not fixing right now the
second argument from u_int to size_t because it is going to break some
ports. In anycase, the sysctl interface will change shortly.
1998-11-13 12:07:51 +00:00
christos
f44085b9f0
cast lh of shift operator to unsigned to avoid lint "non portable" warnings.
1998-11-13 12:06:05 +00:00
christos
d9616f8756
cast args of ntohl() and htonl() to u_int32_t to avoid lint warnings.
1998-11-13 12:04:49 +00:00
simonb
a9c167b273
prototype un-prototyped functions
1998-11-13 11:51:55 +00:00
simonb
8e893eff9e
Add braces around 'if' to pacify egcs
1998-11-13 11:48:26 +00:00
lukem
cc41dfe747
simplify test in in_pcbbind() for setting wild=1; no need to check if
...
((so->so_proto->pr_flags & PR_CONNREQUIRED) == 0 ||
(so->so_options & SO_ACCEPTCONN) == 0)
since the latter is always true, so the former test in unnecessary.
from `TCP/IP Illustrated, Volume 2', W. Richard Stevens, p 730.
1998-11-13 10:50:10 +00:00
mycroft
5ab6a8555e
Fix one last bug in the multicast filter calculation.
...
sdr and vic work now, at least.
1998-11-13 09:37:46 +00:00
mycroft
56aafbe295
Remove bogus change that cause cpu_fork() to panic.
1998-11-13 09:19:26 +00:00
lukem
6ff594779a
oops - missing ","
1998-11-13 06:11:42 +00:00
oster
c74d32c5fc
Updating of bdev's and cdev's to support RAIDframe.
1998-11-13 04:47:03 +00:00
oster
38a3987b69
RAIDframe, version 1.1, from the Parallel Data Laboratory at
...
Carnegie Mellon University. Full RAID implementation, including
levels 0, 1, 4, 5, 6, parity logging, and a few other goodies.
Ported to NetBSD by Greg Oster.
1998-11-13 04:20:26 +00:00
thorpej
2f3f9379cf
Add a couple more file systems to mountcompatnames[] (even though they
...
didn't exist in 4.3BSD or NetBSD 0.9) and always put the table into
the kernel. It's going to be needed for VFS sysctls.
1998-11-13 04:12:35 +00:00
eeh
08af05f929
Fix 32-bit gcc scheduling problems.
1998-11-13 03:47:15 +00:00
thorpej
0e3a0a7f80
Once a fragmented IP packet has been reassembled, recompute the packet
...
length before passing it up the stack. From FreeBSD.
1998-11-13 03:24:22 +00:00
mhitch
7b16048c5a
Fix the Right-Shift on the LK501 keyboard in a different way. My previous
...
attempt results in the up and down arrows not repeating in the X server.
The keyboard division table is modified to place the Right-Shift keycode
into division 6 along with the Left-Shift and Control. A corresponding
change to the X server lk201 keyboard handler is also required.
1998-11-13 01:59:51 +00:00
thorpej
de234f5dda
Pseudo-device definition and files for RAIDframe, CMU PDL's RAID 0, 1, 4, 5,
...
6 implementation + simulator.
From Greg Oster <oster@netbsd.org>.
1998-11-13 01:16:19 +00:00
thorpej
17bfc42d6d
Add DTYPE_RAID.
1998-11-13 01:05:51 +00:00
thorpej
d272bb0024
Handle the case where ccdbuffer() fails due to memory shortage. Build
...
a fifo of component buffers, and free them if ccdbuffer() fails. Once
all component buffers are build, run through the fifo and fire off the
requests to the components.
1998-11-13 01:00:15 +00:00
thorpej
092c201932
Simplify calling of ccdbuffer() now that the mirroring code is nuked.
1998-11-13 00:35:57 +00:00
thorpej
ab27c3f89c
Return EINVAL if invalid flags are passed.
1998-11-13 00:31:02 +00:00
thorpej
00172c10d5
Nuke the mirroring code. RAIDframe is about to go in, and is a much
...
better mirroring solution.
The ccd driver will stay, even in the presence of RAIDframe, for applications
where just RAID-0 is needed (much smaller code footprint).
1998-11-13 00:26:19 +00:00
thorpej
b6ac7c9b6b
Must use PR_NOWAIT when allocating component buffers.
1998-11-12 22:39:57 +00:00
fvdl
fb1a849339
Use different names for the "nfscon" label to tsleep(), so that it can
...
be seen in which one a process is sleeping.
1998-11-12 22:31:02 +00:00
rvb
b148b1ea84
Oops, I didn't mean to let that last commit get out. Though
...
maybe Havard should look at the changes (to make INSTALL smaller)
and see if any are general/reasonable for everyone.
1998-11-12 21:51:02 +00:00
thorpej
05c4e40b41
defopt the APM options.
1998-11-12 21:32:16 +00:00
rvb
7f2a4a5331
Perry said I should ... enable pms0 for GENERIC
1998-11-12 21:12:34 +00:00
thorpej
1fcae7f1be
defopt FFS_EI
1998-11-12 19:51:10 +00:00
christos
e78e086623
change the id arg of ftok from char to int.
1998-11-12 16:15:45 +00:00
christos
551ff5c2a0
use one define per static array instead of defining all three with DKTYPENAMES
1998-11-12 15:52:21 +00:00
bouyer
56107b8e10
Force PCI_COMMAND_MASTER_ENABLE if DMA has been setup properly. The BIOS is
...
supposed to do it but who knows ...
1998-11-12 15:05:29 +00:00
drochner
a16b0cc7db
regen
1998-11-12 14:09:20 +00:00
drochner
0c0b302fba
-add an NE2000 clone, info from PR kern/6430
...
-add comment for PCNET/isapnp (ID is vendor specific)
1998-11-12 14:06:34 +00:00
ws
99d394c267
Typo
1998-11-12 14:00:06 +00:00
mycroft
8146c925da
If we get a TX interrupt with no packets buffered, ignore it. This can occur
...
if the chip is reset while transmitting.
XXX
This occurs at boot time because the SIOCADDMULTI always resets the interface
when adding the `all hosts groups' -- usually while the ARP packet is being
transmitted. All drivers should be fixed to not reset the interface when
changing the multicast filter, if possible.
1998-11-12 13:18:26 +00:00
mycroft
b8974fbf40
Fix yet another bogon in the multicast filter calculation.
1998-11-12 13:03:51 +00:00
thorpej
b29c33e2a0
Update for the new state of the world: pciide, wscons, and a slight
...
change in how PCI-Host bridges are matched.
1998-11-12 01:04:06 +00:00
tron
76a221aca5
Sync with "GENERIC".
1998-11-12 00:57:29 +00:00
thorpej
ad77ef01b4
Add kern/kern_kthread.c
1998-11-11 22:46:32 +00:00