mycroft
2aeb226755
Save and restore pcb_onfault for kcopy(), as pointed out by Steve Woodford.
1998-11-26 19:34:38 +00:00
eeh
a5f6f68714
Fixup ffstab naming conflict between locore.s, libkern/arch/sparc/ffs.S and
...
libkern/arch/sparc64/ffs.S
1998-11-26 19:32:10 +00:00
eeh
8cc6435bf8
Forgot to specify a label for the branch target. Oops.
1998-11-26 19:08:21 +00:00
christos
48a6904248
fix renamed constant
1998-11-26 18:58:50 +00:00
kleink
abd228c31c
Regen: getpgid() prototype change.
1998-11-26 16:13:56 +00:00
kleink
5eb7ae9656
getpgid(2) returns a value of type pid_t.
1998-11-26 16:07:05 +00:00
pk
4dc534f05d
Export the `pcmciabus' attribute on the `pcic' controller.
1998-11-26 15:35:58 +00:00
pk
bb12def997
Use `pcmciabus' to attach the Sbus to PCMCIA bridge.
1998-11-26 15:33:29 +00:00
pk
cfe66472ab
Use `pcmciabus' as the PCMCIA attachment
1998-11-26 15:32:44 +00:00
pk
62781c826f
Define `pcmciabus'.
1998-11-26 15:31:22 +00:00
leo
bea7038c02
The IOMEGA ZIP 100, J.03 does not grok LUN's.
1998-11-26 13:39:14 +00:00
leo
15586aca07
Check-point work on isa-interrupt handling
1998-11-26 13:34:23 +00:00
mrg
a94214bdd0
add a patch from darren reed, to make ipfilter use our cksum routine.
1998-11-26 12:21:47 +00:00
mycroft
74ad07cef5
Revert the functional change in rev 1.38; permit a msg_iovlen of 0.
...
There are two reasons for this:
* We should be able to pass file descriptors without sending any data.
* We could send zero-length iovecs anyway (but we shouldn't have to do this).
Also, msg_iovlen is already a u_int, so delete a bunch of casts.
1998-11-26 02:25:20 +00:00
augustss
ca707fcdf2
Make the copyright header conform to the NetBSD template.
1998-11-25 22:32:04 +00:00
augustss
9726cfd1fb
Make the copyright header conform to the NetBSD template.
1998-11-25 22:17:06 +00:00
ross
8bc9c17338
Disable sanity checks and unnecessary setup for conblock (-b) mode.
1998-11-25 21:19:35 +00:00
sommerfe
0cdf66e377
Fragments should start with a header mbuf allocated by MGETHDR()
1998-11-25 21:13:58 +00:00
hwr
59acb69be1
Add (commented out) 'gre' pseudo device line. Feedback is welcome.
...
Inspired by Klaus Klein.
1998-11-25 20:30:44 +00:00
mjacob
6b12feab6d
add missing include file
1998-11-25 19:58:47 +00:00
pk
b34cd5fdf0
Add IPL_SERIAL
1998-11-25 19:33:02 +00:00
tv
182b5b1d68
Sync with various options in GENERIC that were not added/changed here.
1998-11-25 18:37:48 +00:00
tv
e7f7d54046
The wss driver does work (AS200/233 uses it). Uncomment.
1998-11-25 18:37:27 +00:00
bouyer
cc6a0ef02b
Use bus_dma(9) for the DMA ops in fxp_init() too. Without this the driver
...
was stuck in the while (!(cbp->cb_status & FXP_CB_STATUS_C)); loop,
I think because the relevent CPU cache entry was never updated.
This was on a compaq deskpro system.
1998-11-25 17:19:09 +00:00
christos
6167bac14c
No functional changes. Added Mark Newton's suggested fixes, but since I have
...
not tested them they are #ifdef'ed notyet.
1998-11-25 15:48:35 +00:00
christos
fc1519f1c9
Add a few more constants.
1998-11-25 15:47:51 +00:00
frueauf
04674130a0
pain(void) -> pain(void *), pointed out by Adam Ciarcinski.
1998-11-25 14:50:14 +00:00
mycroft
63f7ee9e53
Return instructions can also be unconditional branches.
1998-11-25 13:58:49 +00:00
mycroft
53698488ff
Do not permit a class to be recorded as a master or monitor port.
1998-11-25 13:44:13 +00:00
mycroft
3357fbeefb
Minor format change.
1998-11-25 13:39:37 +00:00
mycroft
8fbc327df1
DDB needs the stack pointer at the time of the fault to single step through
...
returns. So, adjust the trap frame format to store sp.
1998-11-25 13:09:14 +00:00
mycroft
f4b034d33a
First whack at making single-stepping work through switch and return
...
statements.
1998-11-25 06:41:26 +00:00
mycroft
26a93b8985
Do branch forking for inst_return() instructions, too.
1998-11-25 06:38:03 +00:00
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