Commit Graph

34411 Commits

Author SHA1 Message Date
augustss
537c04e5ee Add a flag, USBD_FORCE_SHORT_XFER, to transfers. Using this flag will
force the last packet of a transfer to be smaller than the maximum
packet size.  The only time this matters is if the transfer size is
a multiple of the maximum packet size, in which case a 0 length packet
is sent last.
Some weird devices require this behaviour to determine the end of
a transfer.
2000-01-16 13:12:05 +00:00
augustss
d837d7a740 Avoid freeing already free data when attach fails. 2000-01-16 13:05:48 +00:00
ragge
fa560ec3ee Bogus context pointer sent to sigreturn() may crash the machine.
Bug found by der Mouse.
2000-01-16 12:43:52 +00:00
augustss
9b9e6e6d2c GC an unused typedef. 2000-01-16 11:19:05 +00:00
uch
1e74db1306 RCS Id. 2000-01-16 11:14:49 +00:00
augustss
f17d5fe839 Change compat defines a little for power hooks. 2000-01-16 10:38:58 +00:00
augustss
9e5ce08183 Add framework for doing isoc transfers. The actual scheduling code
is still missing.
2000-01-16 10:35:24 +00:00
augustss
1a080201cc Add shutdown hooks to ensure that the host controller is halted when
a reboot occurs.
2000-01-16 10:27:51 +00:00
augustss
98347a7628 Add comments. 2000-01-16 09:43:43 +00:00
augustss
5a91238d5f Turn on more debugguing flags with USB_DEBUG. 2000-01-16 09:42:36 +00:00
augustss
4539a83cdc Add a DPRINTF on keyboard errors. 2000-01-16 09:41:22 +00:00
augustss
5522f8f3ba Add some files for ethernet adapters (the files are not there yet). 2000-01-16 09:40:07 +00:00
augustss
c664f35fc5 Let usbd_set_polling() work on a usbd_device_handle instead of
a usbd_interface_handle.
2000-01-16 09:37:18 +00:00
augustss
9647c5b871 Another compat define. 2000-01-16 09:34:18 +00:00
augustss
d50156f1bd Start of implementation of UpDown processing unit control. 2000-01-16 09:32:56 +00:00
perseant
bfde45e89f Make sure that vnodes are locked when inactivated (e.g. by the cleaner) 2000-01-16 09:15:51 +00:00
cgd
9a222ad604 remove .cvsignore files; if the tree doesn't clean completely, that's a bug 2000-01-16 08:27:40 +00:00
perseant
86b0e2dc16 Fix a problem in my changes of Dec 14th, that prevents removed vnodes
from being inactivated under some conditions.  Removed vnodes are now
inactivated when the VDIROP flag is cleared, and to prevent block
accounting problems this clearing has been postponed until
lfs_segunlock.
2000-01-16 05:56:14 +00:00
perseant
a38b519087 correct typo (reference uninitialized variable) 2000-01-16 04:57:08 +00:00
drochner
062970567f catch zeroed ID string (happens for disabled devices) 2000-01-16 03:30:23 +00:00
eeh
e73d544dec Interrupt handlers return zero if they didn't handle the interrupt. 2000-01-16 03:13:24 +00:00
eeh
0e1153bb9f The bootpath element must point to the appropriate bus node to work correctly. 2000-01-16 03:10:58 +00:00
takemura
45dec0d12e Convert CR/LF -> LF. 2000-01-16 03:07:22 +00:00
assar
1f511ff199 (kdb_trap): do not enter DDB on traps when db_onpanic == 0 2000-01-16 01:42:03 +00:00
matt
a9e57ac54d Fixes for 21143 and MII in full-duplex mode. 2000-01-15 18:39:31 +00:00
ad
c02df4a16e Typo. Don't worry, nothing that will cause system instability or data
corruption.
2000-01-15 18:13:22 +00:00
ad
d2d9ade964 Validate EATA signature in returned EATA configuration data before anything
else. More proper than important.
2000-01-15 18:10:32 +00:00
aymeric
494dc92eb1 allow french keyboard users to swap control and caps lock keys 2000-01-15 17:14:22 +00:00
aymeric
626fbe9b6d make this work again (include machine/cpu.h) 2000-01-15 17:09:47 +00:00
aymeric
20a96dc688 make DCIAS work for 020-only / 030-only kernels 2000-01-15 17:08:03 +00:00
aymeric
921c6acc0e defined IPL_BIO, IPL_NET and IPL_TTY for soon to be integrated PCMCIA code 2000-01-15 15:04:21 +00:00
minoura
49f79ab628 Change physseg allocation strategy to VM_PSTRAT_BIGFIRST.
Required when big (>64MB) high memory is installed.
2000-01-15 14:47:25 +00:00
aymeric
b4406c3d63 make this compile again 2000-01-15 13:50:13 +00:00
nisimura
410a23c0a3 Revert to old ROM console I/O code. 2000-01-15 10:06:21 +00:00
msaitoh
150090f9b8 inittodr() and resettodr() supports SH4 2000-01-15 02:46:30 +00:00
nisimura
94c89f6863 Kludge to detect booted_device detection. Needs helpful 2nd stage boot
loaders for finer controls.
2000-01-15 02:06:31 +00:00
oster
138d8fef04 Fix typo + cleanup a bit. 2000-01-15 01:57:57 +00:00
christos
1b02e0a7db Build biosboot_com0 too. 2000-01-15 01:17:12 +00:00
cgd
d447117750 Some additional sanity checks to keep this code from bursting into
flame if presented with bad CIS data (e.g. because of a memory space
conflict):
* more sanity checking on LONGLINK_MFC CIS tuples (exact length check, sanity
  check on size vs. size of array we allocated for them), to avoid various
  missteps which could cause this code to complete trash the kernel stack.
* clear the entire contents of the state structure before processing, so
  things like uninitted pointers will actually have a known value!
* be more careful with CISTPL_CFTABLE_ENTRY: check to see that the current
  state's default_entry isn't NULL before dereferencing it.
2000-01-14 23:09:53 +00:00
perseant
1b67daa4b4 Expand the category of "metadata" in lfs_markv to include Ifile data blocks.
This prevents a rare condition in which Ifile "ifile" blocks, that is, the
blocks of the ifile which point VOP_VGET at the inode block containing the
requested inode, from being "unwritten" when cleaning during intense disk
activity.
2000-01-14 21:41:11 +00:00
perseant
dbe30ed5d4 Better handling of various combinations of cleaning, vnode flushing, and
dirop writing.  In particular, lfs_writevnodes now writes all buffers from
a flushed vnode whether cleaning or not, and the same with the Ifile; and
lfs_segwrite does not attempt to write data from other non-cleaning vnodes,
even if a vnode is being flushed.
2000-01-14 21:38:46 +00:00
msaitoh
5cb845afcd remove SH3_PHYS_TO_P1SEG macro 2000-01-14 21:02:40 +00:00
msaitoh
1e15a3117c use clock_subr.c 2000-01-14 19:41:36 +00:00
msaitoh
06c297195a in_cksum.c ->in_cksum.S 2000-01-14 19:20:32 +00:00
msaitoh
f485f2635c add SH3_{PHYS,P1SEG,P2SEG}_TO_{PHYS,P1SEG,P2SEG} macros 2000-01-14 19:09:35 +00:00
uch
0a98216e35 fix mobilon hc-4100 keymap. 2000-01-14 18:37:58 +00:00
msaitoh
69fcc26071 write through bit (SH4) 2000-01-14 16:06:11 +00:00
ad
ec54843fa3 - Make consistant with the new order.
- Ammend comment about PrestoServe.
2000-01-14 15:52:33 +00:00
ad
ba79e0aab8 Make consistant with the new order. 2000-01-14 15:52:00 +00:00
msaitoh
2d4348b99d in_cksum.S (bi-endian) 2000-01-14 15:47:42 +00:00
msaitoh
80d920c3d0 block prototype definitions with _LOCORE (for .S) 2000-01-14 15:46:02 +00:00
pk
c31e760978 Add missing `break'. 2000-01-14 15:25:28 +00:00
pk
757264e2b1 Remove old-style boot device recognition.
Sync device_register() et. al. with sparc/sparc/autoconf.c
2000-01-14 14:57:27 +00:00
augustss
a30f6c8ad9 Apply patches from Tatoku Ogaito (the author of the code). 2000-01-14 14:39:13 +00:00
pk
77bd08a06b Remove old-style boot device recognition. 2000-01-14 14:38:37 +00:00
pk
cd1f76b21b Remove old-style boot device recognition. 2000-01-14 14:27:14 +00:00
msaitoh
ac8d6acaa7 add cpgreg.h and pfcreg.h for "make includes" 2000-01-14 13:58:06 +00:00
simonb
bdf420bdbf Redo interrupt establishment, based in part on work on the
[nisimura-pmax-wscons] branch and suggestions from Toru Nisimura:
 - Remove bogus tc_slot_info[] name for interrupt handling array
   and replace with simplified struct intrhand  intrtab[] array.
 - Add intr_establish() and intr_disestablish() function pointers
   to struct platform and initialise this in each model-specific
   initialisation, and remove global tc_enable_interrupt function
   pointer.
 - Remove model-specific function declarations from ibus/ibusvar.h.
This is functionally identical to the current scheme, and doesn't
yet try to commonise interrupt establishment by bus type as the
[nisimura-pmax-wscons] branch does.

Also, move cpuspeed variable from autoconf.c to machdep.c
2000-01-14 13:45:21 +00:00
pk
3cb5a866dd Expand md filesystem to 3.6MB. 2000-01-14 13:41:45 +00:00
tsutsui
7fcb8a3a8c minor cosmetic 2000-01-14 13:20:17 +00:00
mjacob
035b04d47a UltraMode is okay for SBus cards with chiptypes of 1020A. 2000-01-14 08:46:37 +00:00
mjacob
0e0104d0e9 There is no readily available tool to set NVRAM on isp's on sparc,
so ignore it.
2000-01-14 08:43:17 +00:00
itohy
cf055ef630 Change the implementation of ms(4) polling to use timeout(9) software
interrupt in order to eliminate glitches on MPU interrupt levels.
I don't know whether this is a good solution, but it does work.
2000-01-14 08:22:42 +00:00
itohy
dbb0c078a5 - Do not lower interrupt level at clock interrupt.
The original code lowers level 6 to 4, and if a
  clock interrupt occurs in splzs (or similar) the
  system may be in unpredictable state.
  To do such a hack correctly, checking the original priority
  and duplicated clock interrupts would be required.
  For now, just disable the hack.

- Do not use clock interrupt for ms polling.
2000-01-14 08:21:22 +00:00
oster
ef035f5a7b Make more 80-column friendly. No functionality changes. 2000-01-14 04:03:52 +00:00
nisimura
034d6278cf Fix an argument error of wsmouse_input() call. 2000-01-14 03:28:13 +00:00
mjacob
4cb8fbf10d Print out the contents of an otherwise unreported undecodable
sense data buffer. This helps catch adapter breakage mostly.
2000-01-14 02:40:45 +00:00
nisimura
a6b81f14b1 Make suline() compilable for 68040. 2000-01-14 02:39:22 +00:00
ad
2db85d5948 - Add some extra TC ID strings that we should recognise. From simonb.
- Function definition and RCS ID spacing.
- Fix multiple inclusion goo to be like the new order of things.
2000-01-14 02:00:46 +00:00
oster
11e019370e "fix" a serious problem with RF_AccTraceEntry_t tracerec stuff.
XXX the "fix" is incorrect, but that makes it consistent with
some of the other code here.  A this point you should *not* be
thinking about using this code. (At all.) (And I mean it.)
2000-01-14 01:00:26 +00:00
oster
ee867c7fdf Add some debugging printfs. 2000-01-14 00:57:57 +00:00
oster
ec84f30ddd If we can't malloc a RF_ShutdownList then we should return ENOMEM right away.
Waiting for more kernel memory to come along can cause more problems than
we're willing to deal with right now.
2000-01-13 23:41:18 +00:00
mycroft
1ee1632a02 Remove EX_CONF_MII for the 3c980. At least 2 people need this for the card
to work.
2000-01-13 23:26:35 +00:00
thorpej
c194b71ab0 Per my comment earlier in the file, we only need to go do splsoftclock()
when write-locking the proclist; splstatclock() is a wee bit overkill.
2000-01-13 21:55:36 +00:00
augustss
a0a41d46da Add another item. 2000-01-13 20:19:43 +00:00
augustss
e4f6c4c51b Add umass.c. 2000-01-13 20:19:14 +00:00
augustss
380035a59d Regen. 2000-01-13 20:16:49 +00:00
augustss
81ae0fb432 Add a Broadcom PHy used in the D-Link USB100 adapter.
There's no special driver for this PHY (yet).
2000-01-13 20:16:08 +00:00
augustss
63d3068c61 Regen. 2000-01-13 19:58:40 +00:00
augustss
3e973f6af5 Sync with FreeBSD. 2000-01-13 19:58:14 +00:00
ad
660d78e477 [#[@ ]]dpt* at eisa? slot ? 2000-01-13 19:10:22 +00:00
uch
ee917c935b TX39 IR module (connected to TX39 UARTB module) 2000-01-13 17:53:35 +00:00
matt
32bb54d2ff Enable IBCS2 (DEC SVR3) compatibility. 2000-01-13 15:09:52 +00:00
joda
de798768b3 (cardbus_attach_card): zero out ca 2000-01-13 10:27:31 +00:00
joda
78d457dc77 (stp4020_chip_mem_map): explicitly don't handle 8-bit memory 2000-01-13 10:03:25 +00:00
joda
31188c7a4b (tcic_chip_do_mem_map): handle 8-bit memory 2000-01-13 09:38:17 +00:00
joda
87414deb1e remove stale comment 2000-01-13 09:05:41 +00:00
joda
8430609055 (pccbb_pcmcia_do_mem_map): handle 8-bit memory 2000-01-13 09:01:17 +00:00
joda
4bc55bd307 (pcic_chip_do_mem_map): handle 8-bit memory 2000-01-13 09:00:30 +00:00
joda
c61a134a00 add flags for memory width 2000-01-13 08:58:51 +00:00
joda
e8937eb4e5 make this slightly more inline with other code; and while at it, fix
some oddities in pccbb_winset
2000-01-13 08:54:20 +00:00
joda
69034619d0 add %b strings for sockevent and sockstate registers 2000-01-13 08:46:46 +00:00
matt
897c73a03a Fix wait case for VAX SVR3. 2000-01-13 06:33:29 +00:00
shin
d4cd1dcd2f change '-G 32' to '-G 30' to avoid overflow(TX3912). 2000-01-13 05:32:41 +00:00
nisimura
765a46262c - Add raidframe and wsmux.
- Fix off-by-one error of scsibus.
2000-01-13 01:04:33 +00:00
nisimura
1775fae985 Add tweaks for TEAC compact cassette tape drive. 2000-01-13 00:18:27 +00:00
cgd
e838d6a869 these are needed due to the change in rev 1.16 of mips/include/mips_param.h 2000-01-12 19:33:18 +00:00
drochner
56b8bc14b4 -catch zeroed descriptors and skip nodes with no valid ressources,
needed to deal with disabled nodes
-Parse "fixed io descriptors". Their use in nonsense in principle
 because 10-bit decoding is implied. Hope this is not real...
-Tolerate mismatches between node size and actually used space
 as long as the used size is smaller than the buffer size. There
 is at least one broken BIOS which reports node sizes larger than
 the used one, and windows obviously doesn't complain...
2000-01-12 19:24:02 +00:00
cgd
67fd1bd089 add clean and distclean targets. Clean cleans out build-generated bits.
Distclean does that, plus removes other files windows is likely to
generate to make things unclean (.opt workspace options files, as well
as automatically updated versions of .dsp/.dsw files).  This means
that if you distclean: your workspace options may be reset to the defaults
(hey, you did tell it to clean everything out!), and any modifications
that you incorrectly made to the .dsp/.dsw files w/o using the templates
and UNIX-based auto-generation will be clobbered.
2000-01-12 19:19:16 +00:00
dbj
b2236223c9 applied patch from "Christian Limpach" <chris@Nice.CH>:
I've fixed the problem that's been keeping me from using anything newer than
   1.4.1 now.  I tracked down the problem checkin, it's the big reorg of
   nextdma.c between 1.19 and 1.20.  It didn't introduce a new bug but it
   activated a check which wasn't activated before.  It's the
   is-the-limit-in-the-right-window-check which was ifdeffed before because
   some DMA-regs would sometimes have strange values.  I think I've fixed the
   DMA-reg stuff for now:   at the end of nextdma_intr, when the csr is poked
   to make DMA do something, I think the check for the ENABLE bit introduces a
   race condition.  I fixed this by unconditionally setting DMACSR_SETENABLE,
   this seems to work and also makes the code more readable.  I've also tried
   setting DMACSR_SETSUPDATE unconditionally and this also works well, but I
   don't know what it implies.  Unless you have reasons to not set SUPDATE all
   the time, I'd suggest making this change as well, it makes the code cleaner
   and faster...
I've tested this patch and it does stop the panics, although I don't think setting
SUPDATE all the tima as he suggests is a good idea.  The "SUPDATE" bit implies
a single update (i.e. the end of a dma chain.)
2000-01-12 19:18:00 +00:00