Commit Graph

27294 Commits

Author SHA1 Message Date
augustss 16b49a78c6 New USB attach args. 1998-12-29 03:09:48 +00:00
augustss 4c9147cd38 Remove part of the bigendian patch that was not supposed to be commited. 1998-12-29 03:01:44 +00:00
augustss d4fa2978fa Imprive debugging message. 1998-12-28 21:05:47 +00:00
augustss 4386ae98b0 Send more information to USB attach routines so that they can claim
multiple interfaces.
1998-12-28 21:05:26 +00:00
augustss dfad58d4e0 Change the host controller internal API a little and add some incomplete
support for isochronous transfers.
1998-12-28 20:13:59 +00:00
mjacob d6cab14b00 clean up headers 1998-12-28 19:12:26 +00:00
mjacob 8ac99457db I mean *really* clean up headers 1998-12-28 19:12:04 +00:00
mjacob b51e3fbf3c clean up headers; remove early revision 2100 workarounds 1998-12-28 19:11:32 +00:00
mjacob e5e787230b clean up headers; move uninit/watch to outer layers 1998-12-28 19:10:43 +00:00
mjacob 9ccf227085 clean up header 1998-12-28 19:07:38 +00:00
augustss c9cf2c5601 Fix typo. 1998-12-28 16:41:11 +00:00
augustss 1256add6be Update for new name in usb.h 1998-12-28 16:13:44 +00:00
hannken bf9e279952 Prepare for wsconsctrl:
- clean up keycode defines.
- allow easy parse of wsksymdef.h.
- add misssing KB_IT entry.
- set layout to KB_USER after ioctl WSKBDIO_SETMAP.
1998-12-28 13:48:24 +00:00
augustss 020a909cba Add a lot of byte swapping to get the code to work on big endian machines.
Patch from Tsubai Masanari <tsubai@iri.co.jp>.
Add an extra controller reset.  According to the OHCI spec it shouldn't
be necessary, but without some machines don't work.
1998-12-28 12:56:19 +00:00
augustss 3c6b7ccc2a Cosmetics. 1998-12-28 12:52:38 +00:00
augustss f4133e9fae Update timing again (for bad devices). 1998-12-28 12:35:27 +00:00
mark 058cf2a88c Apply patch from PR port-arm32/6357 to make the wdc attachment to the
RiscPC mainbus work correctly.
From Richard Earnshaw.
1998-12-28 09:40:28 +00:00
mark 767af4d82c Add a check for r8 equal to 0 and do a quick exit if it is. 1998-12-28 09:39:02 +00:00
ross 509315b9e0 We don't call prom_open() here anymore, so don't call prom_close() either! 1998-12-28 09:12:52 +00:00
augustss be8213d207 Add some isoc defines. 1998-12-28 03:27:00 +00:00
augustss 2e0dbd3cc0 Add another power up wait so that some devices (that do not follow
the spec) start up more reliably.
1998-12-28 02:23:25 +00:00
augustss cd36ca65dd Fix typos. 1998-12-28 02:20:28 +00:00
augustss 8fe37fa62c Cosmetics. 1998-12-28 02:06:25 +00:00
tsubai 2ad7314a82 Configure only one wskbd/wsmouse. 1998-12-28 00:50:44 +00:00
tsubai e7e9a2e0e1 Use "interrupt" property if "AAPL,interrupt" is not found. 1998-12-28 00:38:18 +00:00
nisimura fe061a7ae4 - Eliminate dead code in TLB miss handler. Fortunately it has never been
executed.  Once execunted, the result would be castrophic because it has
addressing error.
1998-12-28 00:31:03 +00:00
augustss 6afab47ac5 Be more careful when forming the TD endpoint field. 1998-12-27 23:40:52 +00:00
augustss 5c3f51a42a Add quirk for bad version no. in audio control descriptor. 1998-12-27 23:38:13 +00:00
augustss 33f1482ece Make sure recording is started before we return EWOULDBLOCK in a read(). 1998-12-27 23:25:32 +00:00
augustss 496387c419 Fold lines to 80 chars. 1998-12-27 22:52:23 +00:00
thorpej 89a7b98a55 Defopt POOL_DIAGNOSTIC and POOL_LOGSIZE. 1998-12-27 21:14:56 +00:00
thorpej e1315a2447 Make this compile with POOL_DIAGNOSTIC, and add a POOL_LOGSIZE option.
Defopt these.
1998-12-27 21:13:43 +00:00
thorpej f079e8d39c Simplify the rttimer code somewhat; use TAILQs instead of CIRCLEQs (we
didn't really need to traverse the queues backwards anyhow), and other
minor code simplification.
1998-12-27 18:27:48 +00:00
augustss da39a16267 Fold lines to 80 chars. 1998-12-27 13:03:58 +00:00
veego 50cc03465e Fix kern/6658 from Martin Husemann:
After booting a current kernel and receiving a few arp requests on the
network it panics (data modified on free list). The panic message is wrong,
as code inspection shows the memory pool for routing entries is intialized
twice, while the routing timer memory pool is never initialized.
1998-12-27 11:44:41 +00:00
dbj ba3bedf25e After some experimentation, now allow dma start alignment to be 4.
Removed separate alignment constant for ethernet since it appears to
be unnecessary.
1998-12-27 09:03:14 +00:00
is bc72f5a29c Make it table-driven. Besides making adding more devices easier, the resulting
code is 14% smaller (alas, for this file only).
1998-12-26 22:22:58 +00:00
augustss e0c228ae9c Merge changes to make the USB stack work with FreeBSD. The original
diffs from Nick Hibma <n_hibma@freebsd.org>, but with substantial
changes from me.
XXX Not tested on FreeBSD yet.
1998-12-26 12:53:00 +00:00
marc e21b4568e2 When a reference is made to a hole in a swap file, panic. The optimal
thing would be to allocate the block, but I don't know how to do this.
The panic is preferable to the random memory corruption the old code
was causing.
1998-12-26 06:25:59 +00:00
dbj ea8f01b987 Continued experimentation on SCSI driver.
Added nextdma_debug variable to control debug printouts in nextdma driver
when ND_DEBUG is defined.
1998-12-26 06:17:44 +00:00
tsubai 468355c5f0 Make configurable with no frame buffer. 1998-12-26 00:53:49 +00:00
msaitoh 7c25d335bf s/are are/are/ 1998-12-25 16:52:10 +00:00
msaitoh 2718914e14 fix incorrect panic message 1998-12-25 16:50:08 +00:00
marc ae7cea0a83 initialize a variable to avoid a false compiler warning. 1998-12-25 00:54:46 +00:00
marc b5afabb89a check in generated files again so the included CVS id is correct 1998-12-25 00:54:11 +00:00
marc 1a6e9eab49 add quirk support for cards which lie extensively about their CIS 1998-12-24 04:51:59 +00:00
marc 2636bc951d add code to permit pcmcia intr debugging 1998-12-24 04:50:43 +00:00
marc 2cf34a47e0 The PCMCIA_PRODUCT_3COM_3CXEM556 requires the same CCR hack as the
3c562.
1998-12-24 03:59:00 +00:00
marc b6a56aac7f add an entry to the products array for the
PCMCIA_PRODUCT_3COM_3CXEM556.

This device requires the same CCR hack as the 3c562.
1998-12-24 03:57:45 +00:00
marc c9ffa39a53 add product id for 3Com/Megahertz 3CXEM556 1998-12-24 03:55:54 +00:00
itohy 172852517b Switch x68k port to UVM by default.
Mach VM and even old contig and non-contig codes are still alive.
1998-12-23 23:01:44 +00:00
christos c7f9823bf0 C_LABEL has no _ if __ELF__ 1998-12-23 15:09:48 +00:00
christos 6b7467980b Add NetBSD note constants. 1998-12-23 15:09:09 +00:00
christos 27e4ef39db Add support for parsing OS type note fields. 1998-12-23 15:08:37 +00:00
tron b471830935 Sync with GENERIC. 1998-12-23 09:46:07 +00:00
mrg 9ec7c3c814 move sun3 to UVM by default. only pica/arc & x68k left. 1998-12-23 06:00:03 +00:00
fair 7a738d840b Make gcc happy by changing %x to %lx hiding in a DEBUG. 1998-12-23 04:53:44 +00:00
kleink 7d144777a3 #ifdef __STDC__ -> #if __STDC__ 1998-12-22 21:21:36 +00:00
oster e392d933c8 Clean up some debugging stuff, and make it compile without warnings
with -DDEBUG on alphas.
1998-12-22 20:03:14 +00:00
tsubai 86a0b96c10 Search "interrupts" property if "AAPL,interrupts" is not found. 1998-12-22 19:46:28 +00:00
tsubai 89e0cc0a86 Display frame buffer type when attached. 1998-12-22 19:38:35 +00:00
tsubai 1e7ee2d117 Determine the address of interrupt register at runtime.
(iMac has different address)
1998-12-22 19:35:49 +00:00
scottr 84af636530 vm_offset_t -> {paddr_t, vaddr_t} 1998-12-22 08:47:05 +00:00
scottr da48906a74 Update for present reality. 1998-12-22 08:25:34 +00:00
thorpej 5f69dedb2c ipip_input() -> mrt_ipip_input(). 1998-12-22 02:51:32 +00:00
mrg 12d0e6e8f7 move sparc{,64} installboot.8 back to src/share, to avoid splitting sources for users who dont get everything. 1998-12-22 02:34:09 +00:00
thorpej 0a87ec1ac7 Use pools for rtentry and rttimer structures. 1998-12-22 02:27:06 +00:00
thorpej 54377d1212 Simplify the tunnel lookup routine. 1998-12-22 01:49:04 +00:00
thorpej 3322b9a32e Add an extern declaration of gre_softc[] here. Wrap it and the prototypes
in #ifdef _KERNEL.
1998-12-22 01:33:45 +00:00
thorpej 943f7cd0e7 In unp_internalize(), add a comment explaining why we must ALIGN() the
data after the cmsghdr when accessing internalized SCM_RIGHTS messages
(i.e. array of struct file *s).  The historic interface does not align
the externalized SCM_RIGHTS messages (i.e. array of ints).
1998-12-21 23:12:19 +00:00
thorpej 992f3b8ea7 Fix a fencepost error in unp_scan() which caused a bad pointer deref on
the SPARC platform only (ILP32 but ALIGNBYTES of 7), due to a missing
ALIGN().
1998-12-21 23:03:02 +00:00
tsubai 07c96d75d6 Wait one second before powerdown. 1998-12-21 21:58:19 +00:00
leo c81639d273 Change quirk entry: "FX320S", "", " q01" to: "FX320S", "", "q01". This
space does seem to matter...
1998-12-21 21:40:12 +00:00
drochner 71fa656b19 use a symbolic definition for the PCI subsystem ID 1998-12-21 20:56:06 +00:00
drochner c896b644ba use a symbolic definition for the PCI subsystem ID 1998-12-21 20:40:01 +00:00
drochner ac7ba300c0 add two of the newer register definitions 1998-12-21 20:31:54 +00:00
augustss ebbe6623e2 Regen 1998-12-21 17:22:33 +00:00
augustss 2da45b8352 Fix typo. 1998-12-21 17:18:29 +00:00
augustss 84f4ab4fd0 Regen. 1998-12-21 15:45:20 +00:00
augustss 3c75aecaf5 Add ADS ethernet adapter. 1998-12-21 15:42:59 +00:00
drochner 45b5108fb1 regen 1998-12-21 13:43:11 +00:00
drochner 70a2fcddc2 change name of 82443BX according to Intel's data sheet
correct "no AGP" case to real topology of the chip
clarification: s/AGP Device/AGP Interface/
1998-12-21 13:37:00 +00:00
pk fc6df8006b Make sure we don't spuriously detect more than one boot device (as the
previous patch but extended to all devices).
1998-12-21 11:25:39 +00:00
drochner 63d673f477 g/c SA_USERTRAMP (ok'd by pk) 1998-12-21 10:34:59 +00:00
thorpej 795321b030 Make pmap_collect() actually do something useful. If called with a user
pmap, forget all of the mappings for the user address space for that pmap.
This causes the PT pages to be freed so that they can be reclaimed by the
VM system. [*]

[*] Actually, in the current implementation, it merely causes the wiring
count on the PT pages to drop to 0, which allows them to be reclaimed by
the pagedaemon.  Handling of PT pages needs to be completely rewritten.
1998-12-21 09:02:43 +00:00
thorpej d6bc370c2d Use a memory pool for pmap structures. 1998-12-21 08:51:39 +00:00
christos ce816d0c65 Regen 1998-12-21 07:57:17 +00:00
christos e0bd7401e6 PR/6619: Rick Byers: Add Motorola ModemSurfr 1998-12-21 07:57:00 +00:00
thorpej 43b82d559c Improve pmap_copy_page() and pmap_zero_page(). Don't use pmap_enter()/
pmap_remove() for the temporary addresses.  This is completely unnecessary
as the temps are used ONLY for these routines, and we have better control
over the mapping by manipulating the PTE ourself.  On VAC systems, cache-
inhibit the mapping to prevent wasting a cache load.

These routines are now significantly faster.

Add a DIAGNOSTIC check in pmap_enter() for kernel pmap and (CADDR1 or CADDR2);
nothing should be adding mappings there via that interface.
1998-12-21 06:58:39 +00:00
thomas 6c040077b9 Install kbdreg.h. The Xserver needs it. 1998-12-20 23:17:48 +00:00
christos 981a2987e6 Regen 1998-12-20 18:54:52 +00:00
christos b8041892e9 Add another modem. 1998-12-20 18:54:37 +00:00
nathanw 4d2e9f8e9d Add "pcic0 at pci?". 1998-12-20 17:56:18 +00:00
nathanw 788ff053de Fix up support for PCI attachments of pcic devices on i386 in general,
and the Cirrus Logic CL-PD6729 in particular.

From danw@mit.edu in PR port-i386/6436.
1998-12-20 17:53:28 +00:00
kleink 5ca15dd95f Delete __extension__ on non-GCC or GCC1. 1998-12-20 17:46:46 +00:00
drochner 2e81b6b5f8 regen 1998-12-20 16:06:25 +00:00
drochner 6eb0418fdb add a Zoran multimedia controller chip 1998-12-20 16:05:32 +00:00
thomas 75c4b3bf70 Changed grf mmap that it is closer to XFree. VGA memory on et4000/et6000
is now at offset 0xa0000.
1998-12-20 14:32:34 +00:00
drochner 6292c7eda0 Make midi_attach_mi() and audioprint() available also if MIDIBUS
(but not necessarily MIDI) is defined.
Fixes PR port-i386/6615 (Krister Walfridsson <cato@ulysses.df.lth.se>).
(XXX this should probably go into a separate file to get rid of
the #ifdef mess)
1998-12-20 14:26:44 +00:00
thomas 051cc552ae New code to enable PCI devices. 1998-12-20 14:24:52 +00:00
nathanw e3504362c9 Regen. 1998-12-20 03:53:03 +00:00
nathanw 7003241eab Add IBM Wireless LAN Entry and Xircom CreditCard Ethernet+Modem. 1998-12-20 03:52:40 +00:00
nathanw d114556e2a Avoid using "generic" configuration table entries during first
resource allocation attempt - would crash system if a generic entry
preceded a workable specific entry.
Rearrange a little for clarity.
1998-12-20 03:49:53 +00:00
thorpej 51d0670371 Clean up a whole load of comments, making many of them truthful, and
indicating which functions are INTERFACE vs. which aren't.
1998-12-20 01:15:52 +00:00
thorpej 80e50e26a8 Unclutter a bit. Use a PMAP_DPRINTF() macro where possible, getting rid
of loads of #ifdef DEBUG ... stuff.
1998-12-19 23:51:47 +00:00
nathanw 9670878a82 Regen. 1998-12-19 23:48:39 +00:00
nathanw f920aee0b3 Add original Xircom CreditCard Ethernet. 1998-12-19 23:47:51 +00:00
thorpej 6659e7174e In pmap_testbit(), if we end up traversing the PV list, cache a hit on the
bit to speed future tests.
1998-12-19 23:21:51 +00:00
thorpej 97f422e85b Make pmap_changebit() take bits to set and a PTE mask, rather than a bit
and a boolean.
1998-12-19 23:01:47 +00:00
scottr 3de0336b7c Protect a keyup event for ADBK_3 in the mouse button emulation code with
ALTXBUTTONS, so as to not cause trouble with some non-US English
keyboards.  From SUNAGAWA Keiki, PR 6613.
1998-12-19 21:41:13 +00:00
thorpej d36a60d9cb G/c PMAPSTATS. It's unneeded clutter right now. 1998-12-19 21:11:14 +00:00
ragge 6036a3463e Fix bufpages miscalculation. At the same time, make bufpages configurable
att compile time.
1998-12-19 20:06:36 +00:00
he a127a479d7 Add 'ex' driver and various mii stuff, from GENERIC. 1998-12-19 20:06:30 +00:00
thorpej 459052a0fb Wire down some SCSI disk units. 1998-12-19 20:05:19 +00:00
ragge 75c1333e8e A "return 1" should be "return 0". Caused machine to crash as soon as
it started paging.
1998-12-19 20:03:23 +00:00
he bdafd9591e Add "ustarfs" as a recognized boot file system type, and bump version number. 1998-12-19 19:44:56 +00:00
he 02cf5984b5 Retry ustarfs_cylinder_read after disk change, apparently required on i386. 1998-12-19 19:24:32 +00:00
he 2cfee96f35 Implement -b option, similar to on alpha, required for ustar floppy support. 1998-12-19 19:17:23 +00:00
drochner 8b9671f0f5 get "opt_compat_xxx.h" includes out of <sys/signal.h> 1998-12-19 16:27:09 +00:00
drochner dafe2a2b81 Some BIOSes return occasionally with carry set from APM_CPU_IDLE/BUSY
calls, without setting a defined error code. This leads to annoying
output. Put the printout inside APMDEBUG.
1998-12-19 14:46:10 +00:00
dbj db8bf6a623 Revamped DMA interface to unify chaining and non-chaining dma sequences.
Updated ethernet driver to work with new interface.
Continue work on esp driver.
1998-12-19 09:31:44 +00:00
thorpej 12632ebf71 Reverse the copyright-notice-swap. It went against existing practice. 1998-12-19 02:46:12 +00:00
thorpej d15dc38fd9 Changes from FreeBSD:
Implemented a more sophisticated mechanism for handling transmitter
interrupts which now defers them until the transmit queue if filled
up with completed buffers. This has two advantages: first, it reduces
the number of transmitter interrupts to just 1/120th of the rate
that they occured previously, and two, running down many buffers
at once has much improved cache effects.

Defer rundown (m_freem) of completed transmit buffers for no longer
than 1 second.

This brings us up-to-date with the most recent "fxp" driver in FreeBSD.
1998-12-19 01:14:37 +00:00
thorpej cb707caaeb Add the Compex Linkport ENET-B Ethernet card, PR #6349, Ingolf Koch. 1998-12-18 22:10:29 +00:00
thorpej 95b5eb860d Regen. 1998-12-18 22:07:53 +00:00
thorpej fc685b5db5 Oops, tyop. 1998-12-18 22:07:39 +00:00
thorpej e2614a90c2 Regen. 1998-12-18 22:07:00 +00:00
thorpej 1142e9ca93 Add the Compex vendor ID, and product ID for the Compex Linkport ENET-B.
PR #6349, Ingolf Koch.
1998-12-18 22:04:48 +00:00
thorpej f64a09cf13 Replace a use of << with the LSOP macro, to fix a specific problem on
little-endian machines.  PR #6390, Ben Harris.
1998-12-18 21:59:34 +00:00
thorpej 875666be42 Add the SVEC/Hawking Tech. Combo card. PR #6461, Rafal Boni. 1998-12-18 21:54:14 +00:00
thorpej 1f7f191ac9 Regen. 1998-12-18 21:53:08 +00:00
thorpej f86bb230f6 Add the SVEC/Hawking Tech. combo card. PR #6461, Rafal Boni. 1998-12-18 21:52:53 +00:00
thorpej 92229a04c1 Quiet some diagnostic messages when we might expect them to happen.
PR #6460, Rafal Boni.
1998-12-18 21:50:16 +00:00
thorpej 489d6d0e46 Reverse the stopgap change made in revision 1.29:
date: 1998/08/01 01:47:24;  author: thorpej;  state: Exp;  lines: +18 -8
Don't call the protocol drain routines if how == M_NOWAIT, which typically
means we're in interrupt context.  Since we can be called from a network
hardware interrupt, we could corrupt the protocol queues we try to drain
them at that time.

The problem has been addressed by letting the drain'able protocols use
a locking scheme to prevent queue corruption.
1998-12-18 21:40:14 +00:00
thorpej 4f177aec90 Add a lock around the TCPCB's sequence queue, to prevent tcp_drain()
from corrupting the queue if called from a device's interrupt context.

Similar in nature to the problem reported in PR #5684.
1998-12-18 21:38:02 +00:00
thorpej ca15e01c76 Add a lock around the IP fragment reassembly queue, to prevent ip_drain()
from corrupting the queue if called from a device's interrupt context.

Should fix PR #5684.
1998-12-18 21:35:11 +00:00
thorpej d9e7d7e6a1 Add support for the Corega PCC-T Ethernet, PR #6603, Takahiro Kambe. 1998-12-18 21:14:17 +00:00
thorpej 75553e60bf Regen. 1998-12-18 21:12:32 +00:00
thorpej eee452e216 Add Corega vendor ID and product CIS info for the PCC-T Ethernet card.
PR #6603, Takahiro Kambe.
1998-12-18 21:12:14 +00:00
thorpej 30f21adec4 Regen. 1998-12-18 21:08:37 +00:00
thorpej 6779120f4a Add product ID for the Yamaha 724 Audio device. PR #6605, Dave Sainty. 1998-12-18 21:08:19 +00:00
thorpej 3bd57bb34b Correct a panic message. 1998-12-18 19:52:11 +00:00
drochner ba4af3c3de regen 1998-12-18 18:59:06 +00:00
drochner b71f154130 remove compat_xxx dependencies where they don't belong 1998-12-18 18:49:59 +00:00
drochner 52c16cf83a get "opt_compat_svr4.h" out of <sys/conf.h> 1998-12-18 16:55:39 +00:00
drochner 0f6572f2b1 COMPAT_xxx option review: add missing opt_compat_netbsd.h 1998-12-18 15:49:40 +00:00
drochner 9d0b08a2b5 OMPAT_xxx option review: add missing opt_compat_sunos.h 1998-12-18 15:08:21 +00:00
drochner 9973d1abaa COMPAT_xxx option review: add missing opt_compat_netbsd.h 1998-12-18 14:24:43 +00:00
drochner 8ece294afc COMPAT_xxx option review: add missing opt_compat_linux.h
alpha -> __alpha__
1998-12-18 14:10:06 +00:00
drochner c22ef79250 solve the COMPAT_OLDSOCK/MSG_COMPAT problem differently:
The source files which need MSG_COMPAT define COMPAT_OLDSOCK.
1998-12-18 13:18:42 +00:00
mrg 776ca9e185 back out previous; it breaks when MSG_COMPAT is not defined (no compatibility modules) 1998-12-18 13:00:33 +00:00
explorer 9595b984ec teach fxp about rnd_*() 1998-12-17 23:25:29 +00:00
gibbs c9eb836a6a Return ENODEV when the device capability check fails for MOVE and EXCHANGE
operations.
1998-12-17 22:28:07 +00:00
gibbs 1b30d7e440 Correct the definition of the changer device capabilities page. The
previous definition confused some reserved bytes for exchange capabilities.
1998-12-17 22:27:18 +00:00
kleink fec2cc52f3 T_SVR4_GETHRESTIME returns a nanosecond quantity in %o1. 1998-12-17 22:26:02 +00:00
msaitoh 2d5b32dd03 fix an invalid panic message. 1998-12-17 17:45:08 +00:00
bouyer 85078af6c4 Add a new quirk flags, "ADEV_NOSENSE", for devices that don't
handle properly the request sense command. Add <FX320S, , q01> as being
sense-unfriendly in the quirk table.
1998-12-17 13:05:05 +00:00
gwr 271b8ff5ba Sync with GENERIC 1998-12-17 06:46:55 +00:00
gwr ec630d208f Fix some "unused variable" warnings (if !HAVE_CACHE) 1998-12-17 06:17:45 +00:00
tron 67693a18b7 Sync with "GENERIC" and fix description. 1998-12-17 00:07:08 +00:00
minoura 72bcdb203b Synced with GENERIC. 1998-12-16 14:10:38 +00:00
bouyer f1addbd3fd Defer mapping of pci interrupt to pciide_mapregs_native(). This way,
the native interrupt shouldn't be mapped if a channel is in native mode,
but disabled.
1998-12-16 13:21:26 +00:00
bouyer 945acd7834 Leave some room for the string-terminating char in temp. buffers.
Pointed out by Scott Presnell (thanks !).
1998-12-16 13:06:52 +00:00
bouyer c37bf0ccb4 Keep track of DMA errors, and downgrade the transert mode (UDMA ->DMA,
DMA->PIO) in case of 2 consecutive errors. Don't downgrade if the
PIO/DMA/UDMA modes were forced by a config flag.
1998-12-16 13:02:03 +00:00
bouyer 1f0d6730cc Switch to single-sector transfert mode only for the last retry, to let
a chance to the underlying driver to downgrade the mode first.
1998-12-16 13:00:02 +00:00
bouyer 2093338697 Rearange the modes setup to allow these to be dyanmically changed. Fill
in the new "set_mode" callback.
1998-12-16 12:48:45 +00:00
bouyer 94f32463dc Add a callback to re-compute the modes used on a channel. 1998-12-16 12:46:47 +00:00
christos 5b07a26bc4 Add a commented out entry for tcom. 1998-12-16 11:42:07 +00:00
christos bbe8b4dde5 Add Byte Runner Technologies TC-400 and TC-800 driver from Eric S. Hvozda 1998-12-16 11:33:50 +00:00
kleink 1b6a24c1d4 Support for compound statements enclosed in parenthes to appear as
expressions is a GNU C extension; mark as such them with __extension__ to
suppress portability warnings.  Addresses kern/3562 and misc/6185, as suggested
by Dave Sainty <dave@dtsp.co.nz>.
1998-12-16 11:11:02 +00:00
christos 4df2e84306 Another COMPAT_43 lossage fix (reported by Richard Earnshaw) 1998-12-16 11:01:01 +00:00
christos 1dd3565a09 Fix a long standing bug in wait(2) where the signal was left untranslated,
and defensively code the signal translation.
1998-12-16 10:36:50 +00:00
christos f9ac5ff367 more defensive signal conversion, and fix a malloc sizeof(int) to sizeof(int *). 1998-12-16 10:21:50 +00:00
christos cb7b801ca0 & 0xff WSTOPSIG and WEXITSTATUS, since only 8 bits are significant. 1998-12-16 10:08:35 +00:00
briggs 4a01b776e5 Prototype pool_print() and pool_chk() if DEBUG.
Initialize pool hash table with PR_HASHTABSIZE (i.e., 8) LIST_INIT()s
instead of one memset().
Only check for page != ph->ph_page if PR_PHINPAGE is set (in pool_chk()).
Print pool base pointer when reporting page inconsistency in pool_chk().
1998-12-16 04:28:23 +00:00
thorpej 93454aafc6 Delay sending if SS_MORETOCOME is set in so_state. This avoids the case
where the user issued a write with a length greater than MLEN but less
than MINCLSIZE, thus causing two mbufs to be used.  The loop in sosend()
would then call PRU_SEND twice, causing TCP to transmit 2 packets when
it could have transmitted one.

Suggested by Justin Walker <justin@apple.com> on the freebsd-net
mailing list.
1998-12-16 00:33:14 +00:00
thorpej 2ef3bcfbb8 In the sosend() loop, if the residual count is > 0 before calling PRU_SEND,
set SS_MORETOCOME as a hint to the lower layer that more data is coming
on the next iteration of the loop.  Clear the flag after the PRU_SEND
call.

Suggested by Justin Walker <justin@apple.com> on the freebsd-net
mailing list.
1998-12-16 00:26:10 +00:00
thorpej 6977737a82 Add a new socket state flag SS_MORETOCOME, to indicate to the lower layer
that more data is about to arrive in a PRU_SEND.

Suggested by Justin Walker <justin@apple.com> on the freebsd-net
mailing list.
1998-12-16 00:24:10 +00:00
itohy 36416d8500 Added options COMPAT_LINUX and EXEC_ELF32 as comments
to GENERIC configuration files.
1998-12-15 19:50:00 +00:00
itohy c05dadc113 Added COMPAT_LINUX support. 1998-12-15 19:36:36 +00:00
itohy 0c080222db Added linux compat support on m68k ports. 1998-12-15 19:31:30 +00:00
itohy e0f218ab08 Generated from syscalls.master. 1998-12-15 19:28:31 +00:00
itohy 0176ca73ed Initial support of Linux/m68k compatibility. 1998-12-15 19:25:40 +00:00
augustss b4cf442656 Fix a MIDI buffer overflow problem. Fixes PR 6583.
Patch from Ales Krenek <ljocha@ics.muni.cz>
1998-12-15 18:03:07 +00:00
christos a6406e330a 1000000000 nsec != 2^32 nsec. (from kleink). Also had eax and edx backwards. 1998-12-15 16:10:42 +00:00
christos 9a2a015957 1000000000 nsec != 2^31 nsec (from kleink) 1998-12-15 16:06:15 +00:00
drochner 4f720cad14 make sure programs cannot write to the screen while it is in graphics mode 1998-12-15 14:25:59 +00:00
augustss 57186cce33 Slight code rearrangement and more defensive tests for the sequencer device. 1998-12-15 10:32:16 +00:00
augustss cb022e620d Initialize field to indicate fragment block. 1998-12-14 23:44:04 +00:00
is 920aad33e4 Support for Hypercom 3+ / 4+. Untested yet, but its only some additional
entries in a table.
1998-12-14 20:33:45 +00:00
itohy 643e0d4cc2 Added intr.h 1998-12-14 19:04:58 +00:00
kleink 342b5e5134 Also need to initialize the queue length of a newly allocated fpstate. 1998-12-14 16:18:46 +00:00
itohy b40f2a1c88 Make egcs happy. 1998-12-14 15:22:04 +00:00
drochner 2e89d55ed4 Deal with an unusual response on port selftest commands. This makes at
least John Kohl's crappy Dell box work.
1998-12-14 13:54:25 +00:00
mycroft 4a40350c5d Nuke some #ifdefs that no longer work with COMPAT_43 defopted. 1998-12-14 13:03:19 +00:00
nisimura 8bb7627336 - Fix typos in commentary description. 1998-12-14 02:45:51 +00:00
christos 80f51bcef4 Add an entry point for the solaris 2.6 fast trap vectors, used by the
high resolution timer calls.
1998-12-13 19:31:26 +00:00
christos 4959a9fca6 Add defines for the fast trap vectors. 1998-12-13 19:27:51 +00:00
kleink a2aacaedde Add -Werror and -Wmissing-prototypes, like most other ports do. 1998-12-13 19:19:38 +00:00
christos 139600e069 add include "opt_compat_43.h" otherwise, if this is our only compat option,
we don't link (reported by Klaus Klein).
1998-12-13 19:19:34 +00:00