Commit Graph

52220 Commits

Author SHA1 Message Date
takemura 37728140db Added debugging output indicating details of interrupt register setting. 2001-12-29 05:15:32 +00:00
takemura dce583bd28 Added sg2com(SigmarionII sertial). 2001-12-29 04:27:33 +00:00
augustss 750a5959b8 Add some missing scan code translations. Docs from Microsoft via Perry Metzger. 2001-12-29 02:53:41 +00:00
thorpej 989d1769bc Add a linker script for the NetBSD/x86_64 kernel; provides _etext
in the place that we want for the kernel (after all read-only sections).
2001-12-29 02:24:06 +00:00
christos 49b8e36112 Clean up the C_ and S_ constants. We don't really need two sets of them.
Also make the interrupt handler for older 3com cards look like the xl one.
I.e. don't ack the interrupt latch bit before checking if it is set.
At the same time, introduce constants for the watched interrupts, so that
we don't copy them all over the place.
2001-12-28 20:35:46 +00:00
augustss b53ea42bf0 Update for new uhidev device attachment. 2001-12-28 17:37:01 +00:00
augustss 935b0481a9 Introduce an extra driver level for HID devices, uhidev. This uhidev driver
attaches to the hub, and HID drivers (ums, ukbd, and uhid) attach to
uhidev.  The reason for this change is that some HID devices report multiple
components (like a keyboard and a mouse) using the same interface, but with
different report identifiers.  The report identifier can be specified with
a locator for the HID drivers.
Furthermore, change the ukbd driver to handle other formats than the boot
protocol.
2001-12-28 17:32:36 +00:00
itohy 818f391658 Move this figure to more suitable place:
http://www.netbsd.org/Documentation/Hardware/Chips/C-Media/cmi8738-mixer.fig
2001-12-28 14:02:48 +00:00
martin b506d6e135 Add PPPoE to all generic kernels that should be able to use it.
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
thorpej 23ed6be403 Always provide alloca() as __builtin_alloca(). 2001-12-28 07:37:06 +00:00
thorpej 2db4da1742 Fix some register constraints; specifically, the "port" operand,
if not an immediate, must be in a 16-bit register.
2001-12-28 06:42:40 +00:00
thorpej 670bf31890 Fix the definition of ELF32_MACHDEP_ENDIANNESS. 2001-12-28 06:35:19 +00:00
shin b7e3f7d6e3 R4000/R4400 always detects virtual alias as if
primary cache size is 32KB. Actual primary cache size
is ignored wrt VCED/VCEI.
2001-12-28 04:06:06 +00:00
shin f15b256063 check if curproc is invalid, and do panic.
otherwise, we can't useful backtrace.
Ex. address error in interrupt handler.
2001-12-28 02:13:14 +00:00
minoura da0ba70058 Remove some error messages to reduce the size. 2001-12-28 02:12:55 +00:00
toshii f8c1bea196 Allow jornada720 LCD and keyboard to be used as a boot console. 2001-12-28 01:41:53 +00:00
augustss f690fc0845 More DIAGNOSTIC. 2001-12-28 00:21:26 +00:00
augustss 3bf49b584d Add some more #defines. 2001-12-28 00:20:24 +00:00
shin ae12ee76a0 add #ifdef DEBUG around VCED_count etc. 2001-12-27 22:55:46 +00:00
nathanw 5dbef63175 Use PQUIRK_ONLYBIG for all Olympus cameras, not just the C-1.
Use PQUIRK_ONLYBIG for the PQI TravelFlash.
2001-12-27 18:57:46 +00:00
augustss 04ec4ba316 Add some DIAGNOSTIC stuf that I forgot. From Nate Williams. 2001-12-27 18:48:28 +00:00
augustss f8e03bd53c Change some DIAGNOSTIC #defines. 2001-12-27 18:43:46 +00:00
christos af7d3cdd3d use the new ci_info hook to print extra cpu information during probe. 2001-12-27 15:28:34 +00:00
christos e59d5895b1 add a new function to the cpu struct's that can be called to print extra
cpu information after initialization.
2001-12-27 15:24:34 +00:00
itohy 74f17f2922 Analyzed structure of CMI8738/PCI-6ch-* mixer
for the benefit of those who edit the driver.

This is a Fig file.  Use Xfig to edit/view, use Transfig
package to convert to other graphic formats.
2001-12-27 14:20:30 +00:00
itohy f741672ddc Fix comment. 2001-12-27 14:17:04 +00:00
augustss 0df9b7654d ANSIfy. 2001-12-27 11:28:01 +00:00
augustss d0f9a76506 Update a comment. 2001-12-27 11:27:11 +00:00
augustss 1f003f1c43 Name collection types. 2001-12-27 11:25:47 +00:00
augustss 81b818b421 Add usbd_get_protocol(). 2001-12-27 11:24:42 +00:00
augustss 12560718c5 Files I forgot to remove in last commit. 2001-12-27 11:23:56 +00:00
manu daf979dbeb Added symlink, rename and readlink 2001-12-27 11:07:23 +00:00
dbj 1b65d8fd30 fix single stepping and continuing from breakpoints in ddb 2001-12-27 10:32:23 +00:00
dbj 2bea447d60 sync the instruction cache even when only writing 2 or 4 bytes 2001-12-27 10:25:41 +00:00
manu a965f74abe getpgid implemented 2001-12-27 09:31:09 +00:00
shin 606f00a905 split VCED and VCEI. 2001-12-27 04:19:17 +00:00
shin d00d2e4bcb simplify VCED processing.
just write back and invalidate secondary cache line and fetch data again.
2001-12-27 04:03:37 +00:00
ad 281fb6d209 In clalloc(), clear the quoted char bitmap (part of the ring buffer was
being cleared twice).
2001-12-27 02:27:50 +00:00
wiz 5514d0b117 bcopy/bcmp/bzero -> memcpy/memcmp/memset 2001-12-27 02:23:24 +00:00
fvdl d0f7c6fb96 Use softdep_change_linkcnt to note that the inode mode was set to 0.
From FreeBSD.
2001-12-27 01:48:38 +00:00
fvdl c9218f8686 The softdep code sometimes use vfs_vget .. vput. For removals, these
would result in a vop_inactive call for the vnode each time, resulting
in vinvalbuf->fsync. The original softdep code avoided the fsync
in vinvalbuf by not calling it if there were no dirty blocks. This
was changed in NetBSD. Also, flush_inodedeps was changed to mark
the inode as modified so that it would do an inode update and flush the
last one. This combination basically caused a sync write for each removed
file in an rm -rf (showing up delayed from the syncer a lot of the time).

If called from vinvalbuf (FSYNC_RECLAIM), and there were no dirty blocks
or pages to begin with, still do everything as normal, so that possible dirty
blocks in transit to disk are properly waited for, etc, but don't pass
UPDATE_WAIT to VOP_UPDATE, since there is no need for it in that case.
2001-12-27 01:44:59 +00:00
fvdl 2b5fe12a98 Pull over one missed fix from FreeBSD wrt. running out of quota. Also
reshuffle some code a bit to make it look more similar (no functional
change).
2001-12-27 01:29:05 +00:00
thorpej 1ab1192459 Makefile for x86_64 includes and boot blocks. 2001-12-27 00:43:25 +00:00
shin 1bac15cba5 we need ffs(). 2001-12-27 00:10:39 +00:00
shin 6870c1d462 don't use .abicalls in kernel. 2001-12-27 00:09:59 +00:00
shin e509d7712d copy from libc/arch/mips/string 2001-12-27 00:08:19 +00:00
manu 2faf78e180 Reworked irix_syssgi_mapelf. It now uses elf_load_psection, and this
remove the odd bug which caused INSANE_DEBUG_IRIX to be mandatory in
order to avoid a panic when mapping libraries.
2001-12-26 22:18:25 +00:00
thorpej 86a77080a5 Remove (incorrect) extern decl of emul_hpux. 2001-12-26 19:08:11 +00:00
thorpej 232c19df9d A statement must follow a label. 2001-12-26 19:00:31 +00:00
thorpej 63d3d9fe5a Multi-line string literals are not in ANSI C; don't use them. 2001-12-26 17:37:59 +00:00
minoura e36ba40641 Backout previous.
It was a garbage; atatat already commited the fix in another way.
2001-12-26 14:40:20 +00:00
manu 945d746288 integrated a copy of svr4_waitsys(), which should be merged later.
This has not been fully tested, but it makes IRIX's /bin/sh able to survive
running an external command such as ls.
2001-12-26 11:04:20 +00:00
augustss 996d5c6c26 Be a little more paranoid. 2001-12-26 10:56:58 +00:00
manu aeeecdfad1 Updated copyright (getdents code is from Christos, written in 1994) 2001-12-26 10:54:56 +00:00
cjs 80c0f36acc Re-make these after usbdevs update. 2001-12-26 07:18:36 +00:00
cjs 2d1b70cd08 Add ID for memory stick slot in Sony Clie running PalmOS 4.0. This may also
be the same for the PalmOS 3.5 versions, but I can't test that.
2001-12-26 04:32:39 +00:00
ross 71c3eef663 include systm.h (for libkern.h (for ffs())) 2001-12-26 00:38:37 +00:00
manu 9423df444f Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
2001-12-25 21:32:30 +00:00
manu ae9b01a907 Added getcontext/setcontext. This has not been fully tested, but it seems to
work enough for binaries that use it (eg: telnet).
Problems:
- what should we do with uc_filler?
- how to handle FP regs?
2001-12-25 19:04:18 +00:00
someya 09638d7a55 add 600 times dummy read from codec for YMF744 (revision < 2). 2001-12-25 16:55:50 +00:00
manu 0d7961013d Added irix_sys_lseek64() 2001-12-25 16:40:48 +00:00
christos 70e238a1bc PR/15049: Katsuomi Hamajima: fix memset re-definition. 2001-12-25 14:03:15 +00:00
jmcneill ff0249d84d Fix block position calculation in esl_intr. 2001-12-25 04:05:34 +00:00
jmcneill b0df9e12af The check for AUMODE_PLAY in esl_set_params was breaking some applications.
Remove it.
2001-12-25 03:47:46 +00:00
jmcneill a89f9c462b 'nintr' from esl_softc was never used -- remove it 2001-12-25 03:46:34 +00:00
jmcneill c4669fd0d0 Fixes output at 44kHz, 16-bit, stereo. Thanks to Charles Hannum and
Lennart Augustsson for providing proper fixes.
2001-12-25 02:37:39 +00:00
augustss 0228f218d3 Add UISDATA_DEBUG. 2001-12-24 21:37:52 +00:00
augustss 213baeaad6 Use the new USB_PRODUCT_ANY match. 2001-12-24 21:36:54 +00:00
augustss bfc3660fb1 Add some more DIAGNOSTIC tests.
Make usb_match_device() match on USB_PRODUCT_ANY.
2001-12-24 21:36:15 +00:00
augustss c33e730dd9 Get rid of the transfer_speed nonsense to calculate the timeout.
We get passed a timeout from the upper layer which is what matters.
2001-12-24 19:24:33 +00:00
chs ed160d6aac make this compile again after -ffreestanding. 2001-12-24 18:20:50 +00:00
chs c356097d58 use ELF instead of a.out symbols now. 2001-12-24 17:57:19 +00:00
chs e5b36c6564 typo in last. 2001-12-24 17:56:59 +00:00
chs c5fffebac0 needed for ELF, just include the m68k common header. 2001-12-24 17:56:31 +00:00
dbj d91a86f994 revert revision 1.13
this turns single stepping back off since it doesn't correctly work
note that without single stepping, several things do not work as
expected, including continuing from interrupts
2001-12-24 16:57:40 +00:00
augustss a6727606ec Add (commented out) wd at umass (for ISD adapters). 2001-12-24 13:47:13 +00:00
augustss ab7b323efa Add a preliminary version of a driver for In-System Designs non-standard
ATA-over-BulkOnly protocol.  The ISD chip can be found, e.g., in the
Archos MP3 player.
The driver still lacks real error handling.
2001-12-24 13:43:24 +00:00
augustss 45fc7e27e9 Regen. 2001-12-24 13:40:50 +00:00
augustss 0d60061a8b Add some more In-System based adapters. 2001-12-24 13:40:31 +00:00
augustss 56b5867371 Make the separation between wire protocol (umass.c) and command protocol
(umass_scsipi.c) more distinct.
It is now possible to add new command protocols with a minimum of change.
The umassbus.[ch] files have been renamed umass_scsipi.[ch] since this
reflects their purpose better.
2001-12-24 13:25:52 +00:00
jdolecek e71e5045dc Back off rev. 1.21, this is going to be handled via userland keymap file.
Discussed with Martin Husemann.
2001-12-24 12:39:55 +00:00
christos 6e8072d607 enable the card before trying to establish an interrupt because we need the
ccr mapped on multi-function cards.
2001-12-24 12:07:27 +00:00
minoura 6894058edf ELF!! 2001-12-24 11:38:06 +00:00
minoura 09b4ffd576 ELF!!
Plus adopt my environment (TOKOCHAN is my development config as well
as an example).
2001-12-24 11:38:05 +00:00
minoura ebfadba677 ELF!! 2001-12-24 11:38:04 +00:00
christos d3d8a33acf change if defined foo to ifdef foo and change a c++ comment into a c comment. 2001-12-24 09:41:34 +00:00
christos d0b18148da make sure that we adjust the end of the subrange if we adjusted the beginning
of it, but the offset of the card. Fixes 'cannot map i/o space' on 3c562d
2001-12-24 09:37:53 +00:00
christos 0e9f2d7a35 when we disable, we first disestablish the interrupt and then the card.
when we enable, we first configure the card and then establish the interrupt.
This is so that the ccr is mapped on multifunction cards.
2001-12-24 09:30:40 +00:00
shin 3e560d975e make YBASE and EPOCHYEAR tunable. 2001-12-24 01:22:50 +00:00
shin f22f06769c fix debug printf() format string. 2001-12-24 01:21:27 +00:00
mycroft cbfac6596e Make SNDCTL_DSP_POST a nop. It's explicitly *not* supposed to sleep, and as
it's merely advisory (and in fact is implemented as a nop in the OSS->ALSA
shim), it should be safe to ignore it.
2001-12-24 00:10:46 +00:00
jdolecek a89c5fcfcb Merge in changes sent by Michael Shalayeff, from OpenBSD port of this driver:
- use better default for DAC level (previous produced distorted output)
- preserve DAC setting in between openings
2001-12-23 23:14:59 +00:00
thorpej 030d89cdf0 Use ANSI declarations for static inline functions, and give them
the __unused__ attribute.
2001-12-23 23:08:41 +00:00
jdolecek c4e01300ad Add the AC97_HOST_SWAPPED_CHANNELS quirk for emuxki, and do some
whitespace cleanup. Streight from Yannick Montulet.
2001-12-23 22:54:08 +00:00
jdolecek 0a96b4c675 Whitespace cleanup, streight from Yannick Montulet. 2001-12-23 22:52:49 +00:00
thorpej 5ed948ecea The kernel is now built with -ffreestanding, so GCC built-ins are
disabled.  Explicitly re-enable some that we want to use, namely:

* memcpy() -> __builtin_memcpy()
* memcmp() -> __builtin_memcmp()
* memset() -> __builtin_memset()

* strcpy() -> __builtin_strcpy()
* strcmp() -> __builtin_strcmp()
* strlen() -> __builtin_strlen()

We might also consider some others for GCC 3.x.
2001-12-23 22:48:29 +00:00
thorpej d7536e1e95 Add -ffreestanding to kernel builds. It's not always safe to
use GCC's built-ins.
2001-12-23 22:45:07 +00:00
thorpej c9dee7e411 Do not provide memcpy()/memset()/memcmp() macros as wrappers
around b*() functions (!!).
2001-12-23 22:36:16 +00:00
manu e398957bea more UNIMPL IRIX system calls in the table... 2001-12-23 20:57:30 +00:00
manu b8f46be2f6 Added getdents/ngetdents. 2001-12-23 20:15:03 +00:00