thorpej
5e04cc8bb7
Internal bus_dma cleanup.
1998-08-17 22:33:09 +00:00
thorpej
fb0cc46daf
Internal cleanup.
1998-08-17 22:30:08 +00:00
thorpej
4396c67463
Internal cleanup.
1998-08-17 22:28:00 +00:00
augustss
cd09067eb4
* Redo the way the way the MIDI driver attaches to audio devices.
...
* Improve the midisyn layer a little.
* Add a driver for the Yamaha OPL[23] FM synths.
The opl driver is not finished yet; it sounds pretty awful.
For some strange reason I cannot get any FM sound from my SB64 cards,
but a regular SB16 works fine.
1998-08-17 21:16:09 +00:00
thorpej
0809175887
#define _CS_OFISA_MD_REG_FIXUP
1998-08-17 20:40:53 +00:00
thorpej
defb1b327e
Implement a reg fixup, needed for old OpenFirmware builds.
1998-08-17 20:38:08 +00:00
thorpej
d0a17ab63e
Fix a typo.
1998-08-17 20:34:19 +00:00
thorpej
e7a551d60e
Some internal cleanup; pass a tag around, not individual arguments.
1998-08-17 20:15:55 +00:00
thorpej
a2cad65f4e
Only mark the disk dirty if we write.
1998-08-17 19:30:38 +00:00
thorpej
e00e495827
Add missing simple_unlock(), from Stefan Grefen, PR #5981 .
1998-08-17 17:29:20 +00:00
bouyer
fdb344b38f
- use sc_tlphycap with bitmasks instead of direct comparaison (needed now
...
that we may have (TLPHY_MEDIA_10_x | TLPHY_MEDIA_NO_10_T).
- add carrier detect for AUI/BNC.
This now works properly with a "Compaq Netelligent 10/100 TX" and a
"Compaq ProLiant Integrated Netelligent 10/100 TX", untested with others
(but should work as well).
1998-08-17 16:41:45 +00:00
briggs
45bcd0fe79
Update comment after cut and paste.
1998-08-17 15:04:51 +00:00
nathanw
dbdebe9c17
Reduce com_devs[] to those devices (one!) that we need to match by CIS
...
string comparison. Change com_dev_match() somewhat to reflect that.
1998-08-17 03:28:51 +00:00
mycroft
04f0dc658c
Assign my copyrights to TNF.
1998-08-17 00:49:01 +00:00
mycroft
a1ac68819f
Assign my copyrights to TNF.
1998-08-17 00:26:32 +00:00
eeh
9ec98c99ae
Added elf64 support (I hope).
1998-08-16 23:30:00 +00:00
scottr
19a5912587
Remove the 'fast' return from intrhand().
1998-08-16 22:29:03 +00:00
kleink
708c5f826e
Add missing wint_t (currently unused).
1998-08-16 17:16:56 +00:00
scw
201603f86e
Hopelessly out of date, esp. now that we follow the standard
...
installation procedure.
1998-08-16 15:39:58 +00:00
scw
445aefc354
Switch to using the common m68k stuff for a couple of things:
...
. cache control functions <m68k/cacheops.h>
. sigreturn code <m68k/m68k/sigreturn.s>
Also a few of other things found while scouting around for vm_offset_t
changes.
1998-08-16 15:33:48 +00:00
tsubai
573f3aee5c
Enable 115200 and (untested)230400 bps.
1998-08-16 11:24:36 +00:00
scottr
da5ce9387c
Remove semicolons from the end of bus_space_*_multi_*(). From Ken Nakata
...
in PR 5965.
1998-08-16 05:36:17 +00:00
matt
2a5371253c
splnet() is not appropriate for everyone. Raise and lower SPL via
...
macros defined in pdqvar.h
1998-08-16 03:44:42 +00:00
rvb
e2ea9195fe
Indent to 4 space for tabs 2 and 3 like the rest of the code
1998-08-16 03:29:16 +00:00
mark
518c6812d3
Block user space access between the cache purge and the context switch in
...
cpu_switch() as all user space addresses must be removed from the cache
prior to the context switch and interrupts are live for the purge.
1998-08-16 02:17:17 +00:00
wrstuden
0e4dc30457
As ovbcopy & bcopy are now done in terms of mem* routines, it makes
...
no sense to "#define ovbcopy bcopy".
1998-08-16 02:15:50 +00:00
mark
2ea34b589c
Enable interrupts during cache clean, purge and sync operations.
...
Instead use a flag to indicate that all user space access are blocked
during the cache op to ensure that user space virtual addresses correctly
expunged from the cache.
1998-08-16 02:14:15 +00:00
mark
decc2dde0a
Implement a mechanism to prevent fuswintr() and suswintr() from accessing
...
user space via a flag. This enables interrupts to be live during certain
critical operations where user space accesses must not be attempted.
1998-08-16 02:11:32 +00:00
mark
152c00c687
Enable interrupts as soon as possible in prefetch_abort_handler(),
...
beore any of the diagnostic checks etc.
1998-08-16 02:03:30 +00:00
mark
d83571ea08
Enabled interrupts as soon as it possible in syscall(), before any
...
of the diagnostic checks.
1998-08-16 02:01:16 +00:00
wrstuden
961641ad2d
We claim to support some mii-equiped pci ethernet drivers, so we
...
need to include dev/mii/files.mii. :-)
1998-08-16 01:40:29 +00:00
thorpej
cbcc3cfa46
Oops, back out something that I didn't intend to commit.
1998-08-16 01:16:57 +00:00
rvb
8e5a13f5f0
Avoid double fault on errors during probes
1998-08-16 00:42:51 +00:00
thorpej
5e177fa975
Regen.
1998-08-15 21:37:24 +00:00
thorpej
ca15ee6ef6
Consolidate the Socket products, pointed out by Nathan Williams.
1998-08-15 21:36:25 +00:00
thorpej
05eabf2eef
Regen.
1998-08-15 21:29:24 +00:00
thorpej
0ac0bf4615
Oops, that Socket Communications vendor ID was redundant. Sort the vendors
...
so I won't make that mistake again.
1998-08-15 21:28:26 +00:00
thorpej
1c7ae25125
Sigh, #if 0 the SMC 8020BT EtherEZ entry until we know what the product
...
ID really is.
1998-08-15 20:47:32 +00:00
thorpej
fec04bbde8
Regen.
1998-08-15 20:46:31 +00:00
thorpej
f2a088f77c
Oops, that SMC product ID is actually for the 8016 EtherCard. *sigh*
1998-08-15 20:46:06 +00:00
thorpej
c529c40718
Normalize the copyright notice on this file.
1998-08-15 20:42:25 +00:00
thorpej
066e235e19
Take a stab at supporting the SMC 8020BT EtherEZ. (Similar to the
...
Megahertz; Ethernet address is stored in third CIS info string, but
may also be in the FUNCE/LANNID tuple.)
1998-08-15 20:11:38 +00:00
thorpej
8954eaede3
Regen.
1998-08-15 20:08:37 +00:00
thorpej
1bf26fea5a
Add SMC vendor ID, and SMC 8020BT EtherEZ product ID.
1998-08-15 20:08:07 +00:00
thorpej
ef4e6a52aa
Regen.
1998-08-15 19:27:16 +00:00
thorpej
20e821491f
Add the Zoom ComStar 33.6 modem, from Dave Huang <khym@bga.com>, PR #5976 .
1998-08-15 19:26:18 +00:00
thorpej
a68f2398d3
Add the Trust Combo EthernetCard, from Dante Profeta.
1998-08-15 19:00:04 +00:00
thorpej
b2097ee74d
Regen.
1998-08-15 18:58:32 +00:00
thorpej
9314c120f7
Add the Trust Combo EthernetCard product ID, from Dante Profeta.
1998-08-15 18:58:05 +00:00
thorpej
cb7214f1a4
Regen.
1998-08-15 18:56:16 +00:00
thorpej
81f67879f9
Add vendor ID for Socket Communications, and product ID for the
...
Socket Communcations Dual RS232 card.
1998-08-15 18:55:25 +00:00
mycroft
d07b3639a4
Assign my copyrights to TNF.
1998-08-15 17:47:15 +00:00
thorpej
7ce9726a7d
Oops, don't forget to tick the MII once a second.
1998-08-15 17:04:52 +00:00
bouyer
1bbc572701
Fix typos in last commit.
1998-08-15 16:58:53 +00:00
thorpej
c2f2b0d431
RoadRunner has a bit in Reset Options that must be set to enable the MII.
...
Define that bit.
1998-08-15 16:50:07 +00:00
bouyer
53d231dae3
correct indent.
1998-08-15 16:49:33 +00:00
thorpej
a0aca43d11
Reset Options is in Window 3; correct a comment.
1998-08-15 16:47:30 +00:00
thorpej
479d8b25bf
The 3c515 (Corkscrew) and 3c574 (RoadRunner) have their Window 1 registers
...
offset! Define an inline function to compute the Window 1 register offset
and use it.
1998-08-15 16:20:51 +00:00
thorpej
31a3d86b80
Define the Corkscrew chipset - used by the 3c515 ISA 10/100mbps cards.
1998-08-15 16:15:40 +00:00
thorpej
3ca5e496cc
Fix a brain'o that caused the 3c589 to not match.
1998-08-15 16:09:46 +00:00
rvb
305a943ba7
Use scsi style geometry printout
1998-08-15 15:05:22 +00:00
mycroft
62b1bf3e2e
Assign my copyrights to TNF.
1998-08-15 10:51:16 +00:00
mycroft
228f894ea2
This code was written by Jason.
1998-08-15 10:38:03 +00:00
mycroft
530fef3c8d
Assign my copyrights to TNF.
1998-08-15 10:34:43 +00:00
mycroft
6dc903202f
Assign my copyrights to TNF.
1998-08-15 10:10:47 +00:00
thorpej
7d0d0346fa
Define the RoadRunner FIFO count registers.
1998-08-15 08:28:22 +00:00
scottr
4b02e4134c
Initialize and enable an interrupt handler, which currently doesn't
...
actually do anything.
1998-08-15 07:42:50 +00:00
thorpej
ccf620bfab
Define the 3Com "RoadRunner" chipset; like the Boomerang, but for PCMCIA.
...
No DMA is wired up, it has a shared memory interface, and a FIFO buffer
which can be used to speed up PIO transfers. (The latter two are
PCMCIA-specific speed hacks to deal hide the performance lossage from
using a PCMCIA->PCI bridge internally.)
1998-08-15 07:28:04 +00:00
thorpej
4c88513d7d
Look up the PCMCIA 3Com products in a table-driven fashion, like the
...
PCI products.
1998-08-15 07:25:15 +00:00
thorpej
d5b735ae79
In the NewMedia callback, make sure we have a LAN Node ID tuple.
1998-08-15 06:56:12 +00:00
thorpej
2be6d344ab
Use the symbolic name for the tuple code used to find the Ethernet
...
address.
1998-08-15 06:46:33 +00:00
mycroft
bf886f2029
Assign my copyrights to TNF.
1998-08-15 05:19:50 +00:00
mycroft
129cbf95ee
Minor edit.
1998-08-15 05:16:41 +00:00
mycroft
c9a799adf6
Assign my copyrights to TNF.
1998-08-15 04:57:50 +00:00
mycroft
cc8a78e783
Assign my copyrights to TNF.
1998-08-15 04:42:42 +00:00
mycroft
cdf829a998
Assign copyrights to TNF.
1998-08-15 04:22:45 +00:00
mycroft
b2827b9d36
Assign copyright to TNF.
1998-08-15 04:16:55 +00:00
eeh
239bc62b37
Add a makefile.
1998-08-15 03:57:58 +00:00
mycroft
df9baf2311
Assign copyrights to TNF.
1998-08-15 03:51:30 +00:00
mycroft
08ab3f8338
I didn't write any of this.
1998-08-15 03:36:34 +00:00
thorpej
06b7eb9001
Explicitly dereference the route timer expiration function pointer.
1998-08-15 03:17:21 +00:00
mycroft
6d3d8a1350
Make copyright notices with my name consistent.
1998-08-15 03:02:31 +00:00
thorpej
2b869a383f
Use _CS_OFISA_MD_* callbacks for old, broken OpenFirmware builds.
1998-08-15 02:59:01 +00:00
mark
2a48768678
Debug inst_unconditional_flow_transfer and next_instr_address
...
macros so that single stepping works correctly.
1998-08-15 02:57:28 +00:00
mycroft
dd769acbfb
Name some constants consistently between drivers.
1998-08-15 02:37:50 +00:00
mycroft
cc84859459
Map the EISA registers correctly!
1998-08-15 02:30:56 +00:00
mycroft
196dfd7597
Always map the EISA configuration registers.
1998-08-15 02:26:31 +00:00
thorpej
e9c5407d64
Only map the amount of space the device actually occupies.
...
Part of PR #5279 , Martin Musemann.
1998-08-15 01:59:25 +00:00
thorpej
93eb06f9f2
Don't bother with the num_memspace check. It makes some otherwise-working
...
cards (e.g. Xircom CM33) fail needlessly.
From Jan van Doorn <jdoorn@nc.com>, PR #5580 .
1998-08-15 01:41:31 +00:00
thorpej
582d4a7856
Should not use SCSI_POLL if the system is not cold.
1998-08-15 01:32:55 +00:00
thorpej
9646d7f100
Add support for the D-Link DE-660. From Tero Kivinen <kivinen@ssh.fi>,
...
PR #5691 .
1998-08-15 01:20:05 +00:00
thorpej
7ea79f1cb2
Regen.
1998-08-15 01:18:06 +00:00
thorpej
be8a202a21
Add the D-Link DE-660. From Tero Kivinen <kivinen@ssh.fi>, PR #5691 .
1998-08-15 01:17:51 +00:00
thorpej
b3b533c44d
Keep track if the disk has had done i/o, making it dirty. On last close,
...
or at shutdown, flush the cache if the disk is still dirty and it support
cache flushing. Fixes PRs #5588 (Jim Bernard) and #5589 (Justin Gibbs).
1998-08-15 01:10:54 +00:00
ross
c291189ae9
Have to fix the `(int)curproc' lossage now; kernel builds die here on alpha.
...
BTW, KNF requires the additional, not-technically-need `!= NULL'.
1998-08-15 00:04:00 +00:00
thorpej
1f4b4ceda6
Add support for the NewMedia BASICS Ethernet. Device info provided by
...
Stefan Grefen in PR #5902 .
1998-08-14 23:31:22 +00:00
thorpej
5fa0fd5087
Regen.
1998-08-14 22:59:54 +00:00
thorpej
924090ec6d
Add vendor ID for NewMedia Corporation, and product ID for NewMedia
...
BASICS Ethernet. From Stefan Grefen, PR 5902.
1998-08-14 22:59:35 +00:00
drochner
cea8e0a23f
explicitely select the master before trying to access its registers
1998-08-14 20:39:04 +00:00
drochner
a8d0a43ffa
2 changes to pciide_probe_wdc() (used in compatibility mode to check
...
if i drive is responding):
-if the reset succeeds, check some registers to make sure there is really
a drive (and not a chipset which echoes back the last written value)
-explicitely select the master before trying to read the master's status
1998-08-14 20:35:40 +00:00
rvb
a5f4270a21
Print program name when entering the debugger
1998-08-14 19:57:01 +00:00
mark
a124d362a5
Minor code cleanups, KNF a couple of bits that got missed and remove
...
register keywords.
1998-08-14 18:04:04 +00:00
thorpej
d5df55112a
vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t
1998-08-14 16:50:00 +00:00
thorpej
97e83f6e0b
Change the "vm_offset_t"s to "u_long"s for now; eventually, we can make
...
them vaddr_t and paddr_t, as appropriate (after scouring the RPB docs
to know which are phys and virt addresses).
1998-08-14 16:46:09 +00:00
augustss
308117258b
Add filecorefs so we get the header files installed.
1998-08-14 13:05:37 +00:00
scottr
e3e7e1673f
Fix the NEXT_IA_WITH_SAME_ADDR macro introduced in 1.27: it was finding
...
the first in_ifaddr structure with a different internet address! Reverse
the sense of the test. Spotted by and fix from Eric Haszlakiewicz.
1998-08-14 06:57:54 +00:00
mark
170eadd04c
Add FILECORE filesystem.
1998-08-14 03:56:21 +00:00
mark
0641969cd0
Added a vnode type for filecore fs (VT_FILECORE).
1998-08-14 03:31:16 +00:00
mark
10198359c6
Define filecore mount and filecore node memory types.
1998-08-14 03:29:49 +00:00
mark
922fa73143
Define the filecore filesystem MOUNT_FILECORE.
1998-08-14 03:28:56 +00:00
mark
69244872a4
deffs FILECORE
...
Added filecorefs files.
1998-08-14 03:27:51 +00:00
mark
faf4eed3e3
Initial commit of Andrew McMurry's Acorn Filecore filesystem.
...
This is a read only implementation of the filecore filesystem found
on Acorn RiscPC machines (arm32).
1998-08-14 03:26:12 +00:00
rvb
4283228f33
Make message less confusing
1998-08-14 02:20:07 +00:00
mycroft
183442fe73
Emulate ulinear_be using slinear_be on later chips.
1998-08-14 00:49:23 +00:00
thorpej
ae8bdb1e72
Make sure CIMDIS is set and FLINK is clear in the PCR.
1998-08-14 00:23:26 +00:00
thorpej
f41c00629b
Garbage-collect vm_offset_t and vm_size_t.
1998-08-13 21:36:27 +00:00
thorpej
330d142f16
vm_offset_t -> {vaddr_t,paddr_t}, vm_size_t -> vsize_t
1998-08-13 21:36:02 +00:00
thorpej
aedf80a6e9
Oops, lots of missed vm_offset_t -> vaddr_t changes.
1998-08-13 21:20:47 +00:00
thorpej
057d49dba3
Second arg of vm_map_insert() is/was a vm_object_t.
1998-08-13 21:12:15 +00:00
thorpej
09efdbb42d
Oops, this got missed in the vm_offset_t -> vaddr_t change.
1998-08-13 19:15:33 +00:00
rvb
e829016cba
Keep d_ncylinders correct
1998-08-13 18:18:54 +00:00
rvb
48bf26949f
Report "true" disk geometry; like sd disks do
1998-08-13 18:16:53 +00:00
rvb
d0153a96fe
The sense of the pccons_is_console test is backwards
1998-08-13 18:00:05 +00:00
rvb
0430a2cf75
Include db_dbgregs.s for ddb
1998-08-13 17:55:41 +00:00
rvb
1ae4d7da86
Allow inb/outb and friends to be called from debugger.
...
Crude access to x86 hdw "debug" registers.
1998-08-13 17:54:15 +00:00
rvb
67390e1ee2
Make serial line debugging easier to enable and use
1998-08-13 17:41:10 +00:00
drochner
9b25897ec0
minor consistency nit: the page index into an anon object is always
...
assigned to from integer types, and it is compared to integers. So
let it be an integer instead of vsize_t.
1998-08-13 17:32:46 +00:00
augustss
523a2c670a
Make sure to turn off timeout flag when doing untimeout().
1998-08-13 15:50:57 +00:00
augustss
33a864ee58
Fix typo.
1998-08-13 15:15:28 +00:00
nathanw
55491ea367
Rototill match algorithim. New scheme:
...
1. Does the function claim to be a serial port?
2. Does the function's configuration table present all four
standard ISA com port ranges?
3. Is the device in our table?
New serial devices do not need to be added to the table unless they
fail both (1) and (2).
1998-08-13 15:08:54 +00:00
nathanw
a461703d7f
Use PCMCIA_FUNCTION definitions.
...
Initialize function ID in new pcmcia_function structures to
PCMCIA_FUNCTION_UNSPEC, not PCMCIA_FUNCTION_MULTIFUNCTION (0).
1998-08-13 15:03:06 +00:00
nathanw
5417a1681d
Add PCMCIA_FUNCTION_* macros, for function types defined by
...
PCMCIA_CISTPL_FUNCID.
1998-08-13 15:00:02 +00:00
scottr
18b4602fd5
Add a comment regarding the broken behavior of the DAFB v7.
1998-08-13 13:45:33 +00:00
augustss
dd1665ce4b
Fix typo in SYSEX code.
1998-08-13 12:40:20 +00:00
kleink
5350df2953
Per POSIX, fail with EINVAL if advisory locking is attempted on a file type
...
that doesn't support it, rather than using a homegrown EBADF or EOPNOTSUPP.
1998-08-13 10:06:31 +00:00
kleink
bf1863d17b
Add genfs_einval(), which does the obvious thing.
1998-08-13 09:59:52 +00:00
mrg
7165d3f691
change the value of audio_prinfo.seek from u_long to u_int before it causes
...
too much damange. everything else here is the same in a 64bit vs. 32bit
world, so keep it all simple. the alpha was the only port to have any real
affect for this, and it only very recently begun to support some audio
devices so it doesn't really apply here. 1.3/alpha did not support audio..
1998-08-13 06:28:41 +00:00
tsubai
0acc329dad
Remove ``#define ovbcopy bcopy''. This exists in sys/systm.h now.
1998-08-13 06:21:38 +00:00
tsubai
a750861e5d
Mask interrupt by hardware register if possible.
1998-08-13 06:18:27 +00:00
kim
f750a7d47e
device ess was listed twice
1998-08-13 04:53:18 +00:00
eeh
a2dd74ed79
Merge paddr_t changes into the main branch.
1998-08-13 02:10:37 +00:00
augustss
c987d23146
Remove some leftover fluff.
...
Make sure there is no outstanding timeout when the sequencer is closed.
1998-08-13 00:13:56 +00:00
augustss
331bfdf5a0
Fix byte order bug I accidentally introduced.
1998-08-13 00:08:53 +00:00
thorpej
798cb235bc
Oops, I forgot aliases for some old names (10baseT/UTP, 10base2/BNC,
...
and 10base5/AUI).
1998-08-12 23:23:29 +00:00
thorpej
94e489e277
If the autonegotiation is enabled, the PAR doesn't indicate duplex mode
...
properly! Work around this by determing current active media by taking
the highest-order common bit of our advertised capabilites and the link
partner's.
If the link partner doens't do autonegotiation, then parallel detection will
pick up the media type, which will never be full-duplex, so reading the PAR
is ok in this case.
Bug pointed out by Matthias Drochner, work-around inspired by reading
the dp83840 manual, section 3.9 (IEEE 802.3u auto-negotiation).
1998-08-12 22:41:21 +00:00
thorpej
d95a6e9dec
Make a variable name reflect a register name.
1998-08-12 22:27:42 +00:00
thorpej
d4a5a3d0ef
Run the shutdown hook w/ SCSI_AUTOCONF.
1998-08-12 22:15:57 +00:00
augustss
58e0098fef
Shut up after close().
1998-08-12 21:36:21 +00:00
augustss
b7dab0b3f7
Add SYSEX.
1998-08-12 21:33:43 +00:00
augustss
391ef355d5
Handle SYSEX messages.
1998-08-12 21:31:28 +00:00
augustss
651d704733
Lower buffer size.
1998-08-12 21:29:29 +00:00
thorpej
981f0cd0d0
If autonegotiation is enabled in the BMSR, and the BMCR doens't claim
...
that it has completed, report "none" as the active media type.
1998-08-12 20:56:34 +00:00
thorpej
a24f6f77bf
Ugh, don't print out "autonegotiation failed to complete" if it did.
...
We get these once a second if we're in auto mode, the interface is up,
and there's no carrier.
1998-08-12 20:46:47 +00:00
drochner
3292aee22b
Separate special character handling from normal output so that they
...
are obeyed even during an escape sequence.
This is how the original VT100 behaves.
1998-08-12 20:09:47 +00:00
drochner
8e12b6c020
stricter parameter check for scrolling regions
...
(PR kern/5954 by Dave Huang <khym@bga.com>)
1998-08-12 20:04:12 +00:00
is
8b950c2a65
Get rid of AMIGA_UPTBASE.
...
Replace it by a variable, which is initialized in amiga_init.c.
This will make the kernel actually work even if we have lots of Zorro-III
(or DraCo direct bus) i/o space.
1998-08-12 19:46:12 +00:00
scottr
c587bae132
Nit: space -> tab conversion. No functional change.
1998-08-12 19:16:24 +00:00
mycroft
5c76b6a944
The mic preamp is really a property of the input stage, and affects both
...
pass-through and recording.
1998-08-12 19:13:14 +00:00
mycroft
a5ace63ee2
Associate the preamp with the mic volume in the input class.
1998-08-12 19:09:55 +00:00
mycroft
916c60de3e
Oops; fix typos.
1998-08-12 18:55:03 +00:00
thorpej
b170caf730
Completely rewrite media selection. Add support for the MII/PHY on
...
the 3Com 3c905-TX and 3c905-T4. Fix handling of the MII on the
3c595-MII and 3c597-MII (can't talk to the PHYs on these cards; just
use "manual" for the external MII port).
Fixes kern/4782 (Chris Demetriou).
1998-08-12 18:51:52 +00:00
mycroft
a2f1d5b822
Add a knob to enable/disable the mic preamp.
1998-08-12 18:47:43 +00:00
mycroft
f903600948
Add audio at ess.
1998-08-12 18:32:18 +00:00
augustss
8415989ddf
Add the PC speaker MIDI attachment.
1998-08-12 18:17:55 +00:00
augustss
fa39959a5e
Add a MIDI driver for the PC speaker. This is mostly of hack value,
...
but, hey, lotsa people got a MIDI device now! (A truly pitiful one. :-)
1998-08-12 18:16:36 +00:00
augustss
881b4053a6
Remove some white space.
1998-08-12 18:15:04 +00:00
augustss
50ab480a8c
Add a layer to handle emulation of MIDI for synthesizers.
...
It handles decoding of MIDI commands, voice allocation, and translation
it notes to frequencies.
1998-08-12 18:14:01 +00:00
augustss
27c5df27d1
Tidy up and rename some functions in the MIDI driver.
1998-08-12 18:11:53 +00:00
thorpej
5bec554354
Driver for the 3Com internal PHY, found on 3c905B-TX cards (and maybe
...
some 3c905-TX?). Partially from Frank van der Linden.
1998-08-12 08:46:20 +00:00
scottr
53907fe5a1
Support Cabletron Ethernet card, from John Marohn in PR 5762.
1998-08-12 07:19:09 +00:00
scottr
5a94869995
New framework for handling processor interrupts, derived in part from
...
the hp300 port.
- Interrupts 3-6 use this immediately. Interrupt 7 is a special case,
and the VIA interrupts (1 and 2) will be addressed when that code is
rototilled.
- Modify the zs front end to register with the appropriate interrupt
controller: through the PSC on the AV Quadras, and direct to
interrupt 4 on the rest. Arrange to have the appropriate zsc_softc
supplied to us at interrupt time.
- Modify the direct ADB driver (and its PowerManager cousin) to call
intr_dispatch(), rather than zshard(). XXX This is a kludge, but at
least limits the brokenness to the ADB drivers, now.
As a side effect, this should fix PR 5590. Thanks to Bill Studenmund for
correctly determining the cause of the problem reported there.
1998-08-12 06:58:42 +00:00
scottr
3e40b6ff15
A simple, obvious optimization, now that the loop has been
...
removed from zshard(). Pointed out by Bill Studenmund.
1998-08-12 06:55:24 +00:00
scottr
7f2ca20fd9
New framework for handling processor interrupts, derived in part from
...
the hp300 port.
- Interrupts 3-6 use this immediately. Interrupt 7 is a special case,
and the VIA interrupts (1 and 2) will be addressed when that code is
rototilled.
- Modify the zs front end to register with the appropriate interrupt
controller: through the PSC on the AV Quadras, and direct to
interrupt 4 on the rest. Arrange to have the appropriate zsc_softc
supplied to us at interrupt time.
- Modify the direct ADB driver (and its PowerManager cousin) to call
intr_dispatch(), rather than zshard(). XXX This is a kludge, but at
least limits the brokenness to the ADB drivers, now.
As a side effect, this should fix PR 5590. Thanks to Bill Studenmund for
correctly determining the cause of the problem reported there.
1998-08-12 06:52:56 +00:00
scottr
b2dc905572
The Performa/LC 58x have a Valkyrie, not the DAFB.
1998-08-12 06:50:37 +00:00
scottr
69c09f978c
Be ever so slightly more careful when determining where and what size
...
the frame buffer is.
1998-08-12 06:48:05 +00:00
scottr
3e2efa4365
Fix a prototype tyop spotted by Bill Studenmund: s/clnintr/clnlintr/
1998-08-12 06:46:57 +00:00
scottr
7d09ad09b4
New framework for handling processor interrupts, derived in part from
...
the hp300 port.
- Interrupts 3-6 use this immediately. Interrupt 7 is a special case,
and the VIA interrupts (1 and 2) will be addressed when that code is
rototilled.
- Modify the zs front end to register with the appropriate interrupt
controller: through the PSC on the AV Quadras, and direct to
interrupt 4 on the rest. Arrange to have the appropriate zsc_softc
supplied to us at interrupt time.
- Modify the direct ADB driver (and its PowerManager cousin) to call
intr_dispatch(), rather than zshard(). XXX This is a kludge, but at
least limits the brokenness to the ADB drivers, now.
As a side effect, this should fix PR 5590. Thanks to Bill Studenmund for
correctly determining the cause of the problem reported there.
1998-08-12 05:42:44 +00:00
mycroft
3979b06d00
enhanced -> preamp
1998-08-12 03:18:34 +00:00
scottr
63526c1ff1
New and improved console framebuffer initialization and autoconfig. This
...
resolves a great many issues, including Performa 58x interrupt handling
and offset displays on some models.
Programs that depend on the old (pre-NetBSD 1.1) grf interface may break.
That's actually a separate issue uncovered by this code, not caused by it.
1998-08-12 02:36:36 +00:00
mark
3ad4ac45f9
Reworked interrupt blocking and unblocking to improve interrupt latencies
...
during context switches.
1998-08-12 01:10:29 +00:00
thorpej
b0b082ba68
Give the "ep" driver the "mii" attribute.
1998-08-12 00:45:37 +00:00
mjacob
5ad5bb35af
minor change to make the message less linux like
1998-08-12 00:03:23 +00:00
kleink
8e7a73c40d
Oops, change previous to use the registered name found in the System V ABI,
...
draft edition as of April 29, 1998.
1998-08-11 21:11:51 +00:00
briggs
b3e5811a08
Patch from Takashi NAKAMURA <QZM00427@nifty.ne.jp> to support the
...
Contour 3-button mouse from the Contour Design Corp.
It looks like a Microspeed mouse.
1998-08-11 20:07:59 +00:00
thorpej
f3dd6e430b
Pull in files.mii
1998-08-11 18:52:52 +00:00
ragge
2c639fb882
Cache and microsecond clock resolution on KA46.
1998-08-11 17:52:57 +00:00
kleink
cffd2f29ae
Add machine identifier for the PA.
1998-08-11 17:01:41 +00:00
leo
557c338959
Add CCITT & NATM interrupt handlers. (Jonathan Stone).
1998-08-11 12:22:57 +00:00
matthias
1f5c14d8ef
ess_audio_channel:active is now used even when DIAGNOSTICS is not defined.
1998-08-11 12:16:22 +00:00
leo
6617ede128
KERNEL_RELOC -> RELOC_KERNEL (Entropy)
1998-08-11 07:05:46 +00:00
mycroft
a6e73a5576
Actually set all the logical filter bits. Doh!
1998-08-11 05:57:40 +00:00
scottr
396881cc5d
Eliminate a potential (but not common) NULL dereference.
1998-08-11 05:47:43 +00:00
mycroft
271d3df6f3
Fix an obvious bug that caused the multicast filter to always be all 0s.
1998-08-11 04:18:25 +00:00
thorpej
9b46e98b21
Adapt to attribute name change. Also, deal with 3Com PHYs that report
...
0/0 as their oui/model IDs.
1998-08-11 00:41:44 +00:00
thorpej
cf231bf251
Adapt to MII changes.
1998-08-11 00:28:53 +00:00
thorpej
7b8168e675
Adapt to new MII code.
1998-08-11 00:12:52 +00:00
thorpej
d812ed6db7
G/c the 83840 register definitions.
1998-08-11 00:12:20 +00:00
thorpej
1301693108
Adapt to new MII code.
1998-08-11 00:11:39 +00:00
thorpej
b1fb3ecb0f
Adapt to the new MII code. This required splitting some structures into
...
if_tlvar.h, since the ThunderLAN PHY driver needs to know some things
about it's parent (and since it can only attach to a ThunderLAN chip,
this is the easiest way).
1998-08-11 00:09:26 +00:00
thorpej
36db6106a8
Adapt "tl" driver to the new MII code, and add the "mii" attribute to
...
the "fxp" driver.
1998-08-11 00:08:23 +00:00
thorpej
7779e1dfaa
miibus -> mii, and give it a locator "phy".
1998-08-11 00:06:12 +00:00
thorpej
f0d19c2ee1
Change the name of the attribute to "mii".
1998-08-11 00:05:36 +00:00
thorpej
e7643533b6
Adapt to MII layer changes.
1998-08-11 00:03:12 +00:00
thorpej
e8e237ffc6
Device driver for the Quality Semiconductor QS6612 PHY, found in
...
SMC EtherPower-II cards.
1998-08-11 00:01:03 +00:00
thorpej
6bae1a0bea
Device driver for the Intel i82555 PHY.
1998-08-11 00:00:28 +00:00
thorpej
045a100420
Adapt to the new MII layer. This PHY driver now properly supports
...
802.3u autonegotiation, and will report the precise media selected
by autonegotiation by reading PHY-specific registers.
XXX There is still some work to do wrt. autonegotiation and the
BNC/AUI support in the ThunderLAN PHY.
1998-08-10 23:59:58 +00:00
thorpej
f66f3b1ba9
Adapt to the new MII layer. This PHY driver now properly supports
...
802.3u autonegotiation, and will report the precise media selected
by autonegotiation by reading PHY-specific registers.
1998-08-10 23:58:39 +00:00
thorpej
ad00a98756
Initial generation.
1998-08-10 23:56:19 +00:00
thorpej
3f8be46d4d
Near complete rewrite of the MII layer to present an interface compatible
...
with BSDI's MII layer to device drivers.
1998-08-10 23:55:16 +00:00
matt
8fd79afcf8
Add machine identifier for ARM. Add (commented out) real ident
...
for Alpha as well.
1998-08-10 22:20:18 +00:00
matt
8ba8e2056b
Remove unused field (sc_ih) in ess_softc (interrupt handlers are kept
...
in a per-direction structure).
1998-08-10 20:24:26 +00:00
is
f8dd65f3f5
Fix ommision in last backout.
1998-08-10 20:23:50 +00:00
augustss
b034eb97bf
Fix typo.
1998-08-10 20:02:48 +00:00
is
c81476c89d
ISDN Blaster / Master: ZBus attachment / SUPIO driver.
1998-08-10 18:53:31 +00:00
is
e5439fc15b
Back out last change --- it doesn't work this way
1998-08-10 18:43:06 +00:00
mjacob
345530343a
Responding to an issue brought to my attention- when the device is
...
opened norewind and 2 filemarks are written at the end a phantom file
is left (just what I was afraid of, but I didn't think about it in
the last delta because somehow I had managed to convince myself that
this was a nonissue. It's not.).
So- in stdone clear ST_WRITTEN for regular reads. In st_close, preserve
the state of ST_WRITTEN, and if no error and 2FM@EOD for this device and
this is a no-rewind open, backspace one filemark. This should preserve
(for this mount session) FILE - FMK - FILE - FMK - FILE ... FILE FMK FMK EOD
sequencing.
This doesn't clean up the case of EOM appends- in this case you *will* still
get (after an MTEOM operation and a write of a file) a phantom empty file,
e.g. FILE - FMK FMK - FILE - FMK FMK EOD *unless* you follow the EOM operation
with an explicit backspace. The trouble is that this makes it difficult for
seamless interchange with other systems which don't necessarily follow.
The preferrable alternative would be to eliminate the 2FM@EOD except for
1/2" Reel tapes, but that has been pretty much nixed within developers.
1998-08-10 16:56:25 +00:00
mycroft
7fca135b1b
Use the new trigger interface.
1998-08-10 15:32:18 +00:00
mark
0a1a20bd29
Recognise STRH, STRSH and STRSB instructions as store instructions when
...
determining page protections for [u]vm_fault(). Fixes bug spotted by
Richard Earnshaw.
1998-08-10 15:15:49 +00:00
ragge
9f13823e62
Support for VS4000/60. Some needs-count -> needs-flag.
1998-08-10 14:48:53 +00:00
ragge
c355f4a0ed
Support for VS4000/60.
1998-08-10 14:47:16 +00:00
ragge
2ff84b0fe4
Kickoff xmit interrupts, needed on chip DC7201.
1998-08-10 14:41:16 +00:00
ragge
972b94efc4
Basic support for VS4000/60.
1998-08-10 14:31:07 +00:00
ross
920e7c7d5d
Fix a race involving determination of pollmode. This is not known to be
...
associated with any observed lossage...it was just noticed while reading
ncr_start().
g/c some now-unreachable code produced by the earlier race condition fix.
1998-08-10 13:10:33 +00:00
matthias
574106c52b
create miscfs/genfs/genfs_vnops.c:genfs_enoioctl and make all the other
...
filesystems use it instead of a private version.
1998-08-10 08:11:10 +00:00
mycroft
060f81eb62
Minor change.
1998-08-10 02:19:18 +00:00
mycroft
93703857ca
Slow down, Wilbur.
1998-08-10 02:13:44 +00:00
mycroft
7514d511f7
Fix a typo I introduced in the MIDI code.
1998-08-10 02:12:30 +00:00
mycroft
86fe068843
Add ess at isapnp.
1998-08-10 01:54:59 +00:00
mycroft
1c6dea16fa
For consistency, only do the rate coupling in full-duplex mode.
1998-08-10 01:27:34 +00:00
mycroft
8d77cae1b4
For models prior to the SB16, there is only one clock divider, so couple the
...
sample rates. However, only do this if both play and record are being used
simultaneously; otherwise we can't play 22KHz on the SB1.
1998-08-10 01:25:33 +00:00
mycroft
20ec08b84e
Oops.
1998-08-10 01:17:33 +00:00
mycroft
10148394d2
Call set_params if usemode changes.
1998-08-10 01:13:20 +00:00
mycroft
3dcff6581b
Use the new trigger_{in,out}put interface.
...
Also, even on the SB1, we can leave the DMA controller in auto-initalize
mode and just send a command to the board for each block. This may help
prevent FIFO underruns.
1998-08-10 00:20:39 +00:00
mrg
ca7ad3aff1
make this compile in a not SUN4M world.
1998-08-09 23:37:12 +00:00
perry
2c8717021d
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-09 22:36:37 +00:00
is
878203d616
Cosmetics: it's a "HyperCom 3Z" on a ZBUS, no "HyperCom 3".
1998-08-09 22:25:18 +00:00
mycroft
cf7abcbe64
Minor cleanup to debugging cruft.
1998-08-09 22:11:48 +00:00
is
98f1a01dec
Actually probe the hardware.
...
This is for HyperCom 3i slaveboards (to be done soon) that might or might not
sit on top of a HyperCom 3Z or HyperCom 4 or ISDN Blaster.
1998-08-09 22:08:40 +00:00
perry
e6886047c9
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-09 21:58:52 +00:00
mycroft
592b1dd587
But seriously...
1998-08-09 21:41:45 +00:00
mycroft
a85ed63924
Oops; the previous was wrong on little-endian machines.
1998-08-09 21:35:03 +00:00
perry
4522c799a1
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-09 20:51:08 +00:00
perry
e1601dc2ca
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-09 20:36:58 +00:00
mycroft
4ffebebb25
Several things:
...
* Use the new trigger_{in,out}put interface.
* Allow the play and record channels to have different encodings (but the
same sample rate).
* Play u-law and a-law as 16-bit data. (This may not work yet...)
1998-08-09 20:32:34 +00:00
mycroft
17431823fb
Add trigger_output and trigger_input entry points, which replace
...
init_{in,out}put and start_{in,out}put, and are only called once.
1998-08-09 20:28:07 +00:00
perry
27ca6798df
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-09 20:15:38 +00:00
mycroft
8cbcfa0df2
Add mulaw_to_slinear16 and alaw_to_slinear16.
1998-08-09 19:22:15 +00:00
wrstuden
b1bb9aa490
Oops. We do still need to set t_dev in the first open part of zsopen,
...
so we get ttyXX vs cuaXX right. Leave the initialization in attach.
1998-08-09 18:36:45 +00:00
briggs
64e4a1fa7d
Support video interrupt for GrandVimage 17iL video card.
1998-08-09 18:19:09 +00:00
kleink
e9ef31ed72
msdosfs -> adosfs
1998-08-09 17:54:50 +00:00
tsubai
b872f9b8e7
avoid lint error.
1998-08-09 12:47:27 +00:00
mrg
4a75265273
defopt PFIL_HOOKS.
1998-08-09 08:58:18 +00:00
mycroft
a2fc689833
Make sure output is thoroughly halted on close, and remember that we stopped
...
it.
1998-08-09 07:25:58 +00:00
mycroft
b4e0bf5dfb
Use 4- and 8-byte DMA transfers.
1998-08-09 06:52:57 +00:00
mycroft
0611fc34f8
Don't actually touch the hardware in set_params; defer that until we actually
...
start a transfer. Instead, just check that the parameters are valid.
Also, use 16-bit output for u-law and a-law.
1998-08-09 06:38:30 +00:00
wrstuden
26e55969e4
Initialize the struct tty's t_dev field at attach rather than first open.
...
The attach routine calls zsparam if we're setting up the console, and
zsparam needs this field to tell which zstty to set up. Otherwise, we
set up zstty0 even if it's not the console!
1998-08-09 06:17:07 +00:00
mycroft
9bedf069cd
Mask off extra usemode bits.
1998-08-09 05:44:51 +00:00
mycroft
5eba82397c
Oops; fix typo.
1998-08-09 04:59:55 +00:00
mycroft
017b9af5fe
Clarify with a specific reference to the manual page in question.
1998-08-09 04:58:08 +00:00
mycroft
b3853549b3
Always copy back both the record and play parameters, in case the driver had
...
to change one behind our back.
1998-08-09 04:54:44 +00:00
mycroft
12f5a41e1f
Make the previous slightly more robust, and set AUDIO_PROP_INDEPENDENT.
1998-08-09 04:40:55 +00:00
mycroft
c8532af3b2
Make sure the sample rate is the same on both channels, tracking the change
...
from one channel to the other if only one is active.
1998-08-09 04:14:47 +00:00
mycroft
759ca5ee0c
The manual says to use the other crystal for 22050Hz.
1998-08-09 03:48:42 +00:00
mrg
5d236ade07
minr KNF nit ..
1998-08-09 03:16:23 +00:00
mrg
fe3c14b64d
use __sparc__ not sparc
1998-08-09 03:12:39 +00:00
mycroft
565adbaffb
Set the FIFO control bits correctly so that stereo recording works.
1998-08-09 02:54:50 +00:00
mycroft
80457a2c65
Use auto-initialize DMA for recording.
1998-08-09 02:05:52 +00:00
mycroft
093a8daf6b
Go to splhigh in the debugger.
1998-08-09 00:00:57 +00:00
mycroft
e2686d0a1b
Use splnet, not splimp.
1998-08-08 23:51:39 +00:00
mycroft
c49235f44c
Use splnet(), not splimp().
1998-08-08 23:44:12 +00:00
mycroft
7795559d04
Use splaudio on the arm32 port.
1998-08-08 23:40:03 +00:00
mycroft
d5eb56b2c2
Move splclock and splaudio outside splimp.
1998-08-08 23:39:38 +00:00
thorpej
f996a2e194
Define IFM_INST_MAX, the largest possible "instance" value.
1998-08-08 22:12:30 +00:00
mycroft
254afcaecb
Sleeping forever kinda sucks.
1998-08-08 21:37:00 +00:00
scw
09502c9fb2
Fix -Werror compilation failure due to lack of a couple of 'const's.
1998-08-08 20:57:55 +00:00
mycroft
17932f0575
Set the correct modes for the record channel.
1998-08-08 20:55:36 +00:00
ragge
e9534620b0
Netboot support for KA46 (VS4000/60).
1998-08-08 16:10:41 +00:00
kleink
88191aeeee
Reduce this file as done in the Alpha RAMDISK configuration, which makes
...
keeping it in sync less prone to errors.
1998-08-08 12:59:43 +00:00
kleink
4d9c340f85
Pathconf: for V2 mounts, revert back to failing with EINVAL if an RPC would
...
be necessary to obtain the information, as this fits the pathconf semantics
of `no association supported' better than `no limit available.'
1998-08-08 11:39:20 +00:00
ragge
8fdb1c8ebe
Lots of kernlib functions rewritten as inline macros.
1998-08-08 11:18:32 +00:00
augustss
94e9a8651a
Forgotten to commit this in last change.
1998-08-08 11:00:33 +00:00
ross
815f9f2445
1. Untangle preprocessor conditionals for sanity and {} balance
...
2. Fix a race between the first callout and the first non-polled ncr_start()
1998-08-08 00:14:08 +00:00
kleink
86233eeede
Regen again, to indicate which master revision these were generated from.
1998-08-07 17:21:35 +00:00
minoura
a6b5ab0c92
Moved parioctl.h to the system header directory.
1998-08-07 16:16:36 +00:00
minoura
4c4cdda003
Switched to MI zs driver.
1998-08-07 11:19:13 +00:00
kleink
e081a838b5
Add client pathconf support.
1998-08-07 11:02:39 +00:00
drochner
dabc8eb436
Implement the 'i' flag which makes the bootloader ask for the file to
...
load (as in OSF/1).
Useful for netboot where "-file" doesn't work as needed.
1998-08-07 10:38:37 +00:00
drochner
49637cda8d
use an md keyboard beep replacement function on alpha too
1998-08-07 10:28:36 +00:00
drochner
e8564df3b9
implemt a simple "beep" device to access the ISA speaker
1998-08-07 10:26:38 +00:00
drochner
026fbbe2db
Match PCI-ISA bridges on class/subclass instead of vendor/device.
...
2 reasons:
-no need to keep a list of all known parts
-there is at least 1 bridge (ACC micro 2051) which reports the same
device ID for its various subfunctions; this would require an additional
check in the match function
(keep the old list inside #if 0 in case one of the historical bridges
doesn't report the right class/subclass - I can't check them all)
1998-08-07 10:15:32 +00:00
thorpej
9bb616c621
Regen.
1998-08-07 06:59:31 +00:00
thorpej
88c6239026
Add product IDs for the 3Com Cyclone-based PCI Ethernet devices,
...
the 3c90xB DMA-only cards.
1998-08-07 06:58:57 +00:00
thorpej
558733ffc6
Track our carrier status and report it in the media status callback.
1998-08-07 05:55:14 +00:00
matt
202c97c54d
Add an isapnp frontend for the ess driver. It somewhat works
...
(sounds is made but one buffer is played continuously).
1998-08-07 00:53:23 +00:00
matt
7b044dea51
Make the irq checking logic somewhat less bogus.
1998-08-07 00:51:06 +00:00
augustss
51bb504a6e
Report a sensible MIDI device name.
1998-08-07 00:28:20 +00:00
augustss
48bae9ee88
Add MIDI support. The MIDI devices can be accessed as ``raw'' through
...
the /dev/rmidiN devices, or with a sequencer interface via /dev/music.
So far the only supported MIDI device is the MPU401 port on SoundBlaster
(and only on SB on isapnp, since we do not have locators with multiple
values yet).
1998-08-07 00:00:55 +00:00
kleink
741d372539
Like for NFSv2, add a pointer to the NFSv3 RFC, too.
1998-08-06 19:44:28 +00:00
thorpej
ddb9746a51
Define the minimum and maximum "network type" values. These values are
...
incremented by the minimum to interate through them.
1998-08-06 19:16:37 +00:00
minoura
d082dd3db4
Moved grfioctl.h and iteioctl.h to the public include directory.
1998-08-06 14:08:53 +00:00
augustss
02c9ad1755
And fix pastos.
1998-08-06 12:26:51 +00:00
augustss
a79bb0d7ae
Fix tyop.
1998-08-06 12:23:39 +00:00
kleink
546365a27e
_POSIX_SOURCE -> _POSIX_C_SOURCE
1998-08-06 11:25:04 +00:00
kleink
709dda58f8
_POSIX_SOURCE -> _POSIX_C_SOURCE, and add missing protection bits.
1998-08-06 11:22:57 +00:00
drochner
e2a2525203
fix incorrect length of LOCATE CDB (reported in PR kern/5306 by
...
Dave Huang <khym@bga.com>)
1998-08-06 10:20:38 +00:00
perry
62cff0207c
comment out the prototypes for bcopy, ovbcopy, bzero, and bcmp.
...
uncomment macros transforming into memcpy, memmove, memset and memcmp.
the prototypes should be deleted from the file some time soon.
1998-08-06 04:50:14 +00:00
perry
b84f472652
Sigh. "consts in prototypes can be quite a drag..."
...
fix last two fixes one more time, this time dealing with ugly
prototype issues, including the fact that the bcopy returns nothing,
but memcpy returns a void *. Never mind that we don't use it...
1998-08-06 04:37:57 +00:00
perry
9f63941cfa
Fix botched prototype decl in last fix.
1998-08-06 04:25:55 +00:00
perry
df410f33db
Convert bcopy,bzero to memcpy,memset
...
This was semi-nontrivial, since a function pointer to bcopy gets used
in this file.
Note #1 : The catchpacket routine, which takes a function pointer to
bpf_mcpy or memcpy, should probably be converted to take a
flag that just says which is used, so memcpy can be inlined.
Note #2 : The code is heavily #ifdef'ed to run on older operating
systems. We probably want to clean that cruft out, unless
someone is planning a new release of the code at LBL (doubtful.)
1998-08-06 04:24:25 +00:00
mrg
7ba85a8779
if syscall_debug & compat_sunos, include sunos_syscalls.c
1998-08-06 02:58:44 +00:00
thorpej
dd588c0660
Add a macro to create a media word from type, subtype, options, and instance.
1998-08-06 02:38:19 +00:00
thorpej
b04ded7264
Completely rewrite the way media descriptions are represented. The same
...
data structure is used, but a much saner matching mechanism is used, one
which allows greater ease in adding new types.
1998-08-06 02:19:34 +00:00
kleink
e2a897639d
KNF (only include one of <sys/{param,types}.h>).
1998-08-05 16:50:39 +00:00
augustss
0c6791d804
Add macro to test iobase validity.
1998-08-05 16:40:22 +00:00
augustss
28e2d6024a
Clarify a comment.
1998-08-05 16:38:09 +00:00
augustss
d8582601c5
Make panic message a little more explicit.
1998-08-05 16:34:36 +00:00
drochner
32fce55082
Improve generation of default disklabels:
...
-store printable product ID in cd's and sd's softc, use it as "typename"
-for this, add a "destination buffer length" argument to scsipi_strvis()
-return ATAPI device type for ATAPI devices
1998-08-05 16:29:04 +00:00
minoura
4df8f47ebc
Switched to MI zs driver.
1998-08-05 16:08:33 +00:00
minoura
e8551dcab3
Fixed stray pointer access reported by Yasufumi Itoh.
1998-08-05 15:57:43 +00:00
minoura
89f91f85fa
Fixed typo.
1998-08-05 14:40:20 +00:00
augustss
a0aeff98c4
Fix two pastos.
1998-08-05 10:16:25 +00:00
perry
c3579ce3f5
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-05 02:45:08 +00:00
perry
54f97ab9d1
bzero->memset, bcopy->memcpy
1998-08-05 02:28:26 +00:00
perry
584757c02b
bzero->memset
1998-08-05 02:11:00 +00:00
perry
bf0943278c
Fix a problem first noticed by a user with a screwed up real time
...
clock past the End of Time.
If time_t is 32 bits, then the "End of Time" is Jan 18/19 2038
(depending on time zone).
This code copes with RTC's past the end of time if time_t is an int32
or less. It just forces the time back to 2037. This will let users
with screwed up clocks to at least boot and function long enough to
set their clocks to something sane.
This kludge is conditioned on an
if (sizeof(time_t) <= sizeof(int32_t))
which will automatically optimize the code out once we switch time_t
to a 64 bit quantity, which should happen well before 2037.
Patch based on code from Michael C. Richardson, with help from
Allen Briggs who pointed out a fencepost error.
1998-08-05 01:21:54 +00:00
perry
f15ade7552
enable nanosleep in linux emul, per pr-5906 from Soren S. Jorvang
1998-08-05 00:44:32 +00:00
thorpej
9186d2da5c
Simple instrumentation of pmap_steal_memory().
1998-08-04 22:40:17 +00:00
jonathan
71c8693225
Add missing "-a" to mkdep line for pmax locore_machdep.S.
...
From Noriyuki Soda.
1998-08-04 20:17:09 +00:00
mark
25997dd19d
IPL_TTY -> IPL_SERIAL.
1998-08-04 20:09:37 +00:00
kleink
7b07ad780a
Per XNS Issue 5, calling recvmsg(2) or sendmsg(2) with an msg.msg_iovlen less
...
than or equal to 0 shall fail with EMSGSIZE; the latter condition was not being
checked for. Also, document the msg.msg_iovlen > {IOV_MAX} case.
1998-08-04 19:48:34 +00:00
mark
b6ffd3a85e
Don't call cpu_tlb_flushID() from the pmap_update macro.
1998-08-04 19:11:29 +00:00
dbj
e9545cf241
Fixed memory probe for color turbo machines.
1998-08-04 19:08:23 +00:00
mark
167a777474
Drop in the lastest round of optimisations from Neil Carson.
...
The cache cleaning code in pmap_copy_page() and pmap_zero_page()
has been rewritten and uses a new function pmap_clean_page().
pmap_remove() has been completely rewritten to make it more efficient
when there are only a few pages that actually need to be removed.
1998-08-04 19:02:19 +00:00
minoura
b72d8d17f9
__BROKEN_INDIRECT_CONFIG fixes.
1998-08-04 16:51:51 +00:00
minoura
ea7f1dbe36
Some files were not deleted with make clean.
...
Keymap files are now installed in /usr/share/keymaps/x68k.
1998-08-04 16:39:55 +00:00
mark
47ac4421e0
In setregs(), only pass the stack value in r12 if COMPAT_1[123] is defined.
1998-08-04 16:25:28 +00:00
mark
4b14908352
Fix the validation of source addresses in db_read_bytes() so that
...
memory ranges mapped with L1 section mappings do not cause aborts
due to lack of L2 page table.
1998-08-04 16:19:54 +00:00
mark
e9c872cd6b
Define a macro L1_MASK to mask out the level 1 pde type bits.
1998-08-04 16:16:22 +00:00
minoura
aced90770c
Message fixes.
1998-08-04 16:10:45 +00:00
minoura
233cd5d60b
RB_POWERDOWN is now supported.
...
Check if the power switch is open (off) in the shutdown_hook,
and try removing the power in cpu_reboot.
poffd default action is now shutdown -p.
1998-08-04 16:07:53 +00:00
augustss
f76fb48283
Use looping DMA for play channel.
...
More cleanup.
1998-08-04 13:14:42 +00:00
kleink
c6ef57702d
UIO_MAXIOV -> IOV_MAX
1998-08-04 12:19:15 +00:00
augustss
5b057ab09f
Allow option AUDIO_INTR_TIME even if the platform does not support
...
FP in the kernel.
1998-08-04 11:26:14 +00:00
kleink
3dc1e8147c
Kill "options FIFO" - they're mandatory now.
1998-08-04 11:19:02 +00:00
perry
242ff31b91
update bzero.c to stub from libc/string
1998-08-04 06:27:08 +00:00
perry
974739923b
replace several special targets with stub .c files, as in libc/string
1998-08-04 05:01:58 +00:00
perry
275d1554aa
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
...
bcopy(x, y, z) -> memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
bcmp(x, y, z) -> memcmp(x, y, z)
bzero(x, y) -> memset(x, 0, y)
1998-08-04 04:03:10 +00:00
perry
4d4aa090e9
add memcmp.c
1998-08-04 03:40:43 +00:00
perry
16039920c8
remove memcpy.c -- I forgot this gets built anyway
1998-08-04 03:40:12 +00:00
perry
612c53d05f
add memcmp.c
1998-08-04 03:39:49 +00:00