Commit Graph

52656 Commits

Author SHA1 Message Date
christos f9b7ffe292 Add LBA48 support based on patches from Keisuke YOSHIDA. KNF a bit while
I am there.
2002-01-13 17:24:28 +00:00
jmcneill e52f30dc7a Every card I've seen has had their channels swapped with respect
to the mixer. Ie:
 $ mixerctl -w outputs.master=0,191
Would result in the _right_ speaker being turned off.

So, we will swap the left and right mixer channels to compensate
for this.
2002-01-13 15:07:28 +00:00
bjh21 ef2920350e Use symbolic names for SWI number blocks (from <arm/swi.h>). 2002-01-13 15:04:09 +00:00
bjh21 d46952877d Add an <arm/swi.h>, containing symbolic names for SWI ranges. 2002-01-13 15:03:06 +00:00
jmcneill a3e1dd7338 Remove unnecessary (also unused) AC'97 definitions -- they already exist
in syssrc/sys/dev/ic/ac97reg.h.
2002-01-13 14:48:01 +00:00
jmcneill 4d4665161a Use malloc's M_ZERO flag instead of malloc/memset. 2002-01-13 14:44:15 +00:00
bjh21 9379550701 Make this actually compile on acorn32. 2002-01-13 14:39:13 +00:00
takemura 27d818bfdb Fixed vrpciu with config_hook PCI interrupt handling. 2002-01-13 14:18:31 +00:00
takemura 3d94c421cc Added new config hook type PCIINTR (handling PCI interrupt).
Added config hook APIs, config_connect, config_disconnect and
config_connected_call.
Supported PCIINTR type event in hpcio.
2002-01-13 14:00:38 +00:00
drochner 131f65b2ec -fix new assembler warnings
-add RCS ID
2002-01-13 12:45:54 +00:00
drochner 5245358400 for ELF, put RCSID string into .ident section,
add __KERNEL_RCSID macro which is undefined in case of NO_KERNEL_RCSIDS
2002-01-13 12:44:31 +00:00
aymeric 36fb148d72 Remove the quirks I added for an ethernet card I have.
This ``quick fix'' shall not make it into a release, and the problem doesn't
come from the card but rather from my laptop.
2002-01-13 12:28:02 +00:00
aymeric 24443412ff include machine/types.h
include machine/intr.h if defined(__HAVE_GENERIC_SOFT_INTERRUPTS)
It makes this file compile for the amiga.
2002-01-13 10:57:57 +00:00
aymeric 2968e4165f add Edimax Technology Inc. EP4000A
add another Linksys Etherfast clone (Level One)
2002-01-13 10:41:11 +00:00
aymeric 2ae5495943 regen 2002-01-13 10:39:33 +00:00
aymeric 0e264923e6 add Edimax Technology Inc. PCMCIA Ethernet Card 2002-01-13 10:38:47 +00:00
pooka 284103af4a Add support for the driver to work after suspend/resume. Does nothing
fancy, works for the basic output case, but does not support programs
which use playback while going into suspend.

Sketched after code found in FreeBSD and Linux drivers.
2002-01-13 10:06:51 +00:00
pooka 2e156f09dc * add power definitions
* fix a few (hidden) typos in the definitions
2002-01-13 10:02:58 +00:00
takemura 9ea4be44f4 Number of elements in button_config is smaller than CONFIG_HOOK_MAX_ID. 2002-01-13 08:28:27 +00:00
augustss 1a2fda613e Regen. 2002-01-13 03:14:22 +00:00
augustss 99d55e5ea2 Add 3Com 3crwe777a AirConnect. 2002-01-13 03:13:39 +00:00
bouyer f03445a59f For fixed block drive, for invalid sense error code, set info to
xs->datalen / st->blksize instead of xs->datalen; as code assume later
that info is a block number.
Should fix kern/2727.
2002-01-12 20:30:11 +00:00
bjh21 9fe68c4f64 Combined syscall handler for all ARM ports. This is basically the arm32
version, made readable and compatible with arm26.  In addition, this adds
support for NetBSD/arm's newly allocated SWI range.
2002-01-12 20:02:13 +00:00
scw 7fed4934b8 Move the VMEbus RAM `howto' into the docs directory. 2002-01-12 19:29:49 +00:00
christos 5ff60a19d9 Don't hide the real return code with EPERM. 2002-01-12 18:51:56 +00:00
christos 5266303896 When checking for permissions, include the P_INEXEC test and return
EAGAIN if the process is exec'ing.
2002-01-12 18:51:31 +00:00
tsutsui e6f8529d26 Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:58:16 +00:00
tsutsui c12b5c180d Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:41:02 +00:00
tsutsui 1267bddc09 Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:29:30 +00:00
tsutsui b87a051ec8 Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:17:05 +00:00
tsutsui 84926576f1 Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:03:11 +00:00
manu 5f90ae55b5 Added clockctl 2002-01-12 14:52:40 +00:00
christos 83990b1879 Clear the P_INEXEC flag in other labels. Pointed out by he@netbsd.org 2002-01-12 14:20:30 +00:00
manu d6bd9425bf Added clockctl 2002-01-12 13:39:29 +00:00
chris c3abf9a50c Make GENERIC cats kernel boot again. By allocating a 2nd second level page table for the kernel and stack space we can now have to 8MB of kernel and stacks (if the kernel ever gets really bloated might need to add a 3rd!)
Also update the funcs in arm32_machdep.c that create the entries so that on cats they expect the 2 pagetables to be contiguous, note this means that for now cats is special cased in lots of funcs.  I'll tidy this up to something a bit more sane soon, to avoid the multitude of #ifndef cats that I had to sprinkle in.
2002-01-12 13:37:55 +00:00
manu 0079b3711b Added clockctl 2002-01-12 13:33:42 +00:00
manu eb2b0c03da Added clockctl 2002-01-12 13:22:23 +00:00
manu af62e00622 Added clockctl 2002-01-12 13:11:08 +00:00
manu 2efb671770 Added clockctl 2002-01-12 13:00:46 +00:00
manu 26fc3c46e0 dded clockctl 2002-01-12 12:59:11 +00:00
manu 6330e3eab1 Added clockctl 2002-01-12 12:56:39 +00:00
manu d397792cbb Added clockctl 2002-01-12 12:36:31 +00:00
manu 4e294be530 Oops, wrong number (84 -> 69) 2002-01-12 12:32:58 +00:00
manu 5061ccffdc Added clockctl 2002-01-12 12:28:03 +00:00
manu 9a870a5b82 updated chrtoblktbl[] 2002-01-12 12:23:48 +00:00
manu 08daa954b4 Added clockctl 2002-01-12 12:21:09 +00:00
manu 833e540a34 Added clockctl 2002-01-12 12:09:51 +00:00
aymeric 6f9753bcdd Revert last commit in order to do the right thing.
(i.e. use jmp xx:l instead of exporting xx)

No functional change.
2002-01-12 11:45:26 +00:00
tsutsui 7d5571319d Remove .mdebug and .ident sections from ECOFF kernels so that
the ARC BIOS can load ECOFF kernels built with new-toolchain properly.
2002-01-12 04:07:27 +00:00
enami 68f9f4a5d4 Make ehci_pci.c compiles again. 2002-01-12 02:06:23 +00:00
enami 5c12da5b4a Define new macro to access FSR register and use it. 2002-01-12 01:40:36 +00:00
enami 16fc46b962 Access FSR register correctly in struct fpreg.r_regs[].
This fixes sshd (actually, libcrypto) failure with new-toolchain.
2002-01-12 01:37:08 +00:00
eeh 4d28a1937c Trap types should be printed in hex. 2002-01-12 01:07:00 +00:00
enami 0cd298f02e Skip not yet emulated 8bit ulinear encoding correctly. 2002-01-12 00:13:42 +00:00
nathanw 0244dbad00 Reserve the SA malloc type on the trunk. 2002-01-12 00:00:39 +00:00
christos 67c310f08c Apply the same P_INEXEC test to avoid the execve/trace problem using
the procfs ptrace calls.
2002-01-11 22:02:56 +00:00
christos d4e7e4c9c4 Fix a ptrace/execve race that could be used to modify the child process's
image during execve. This is a security issue because one can
do that to setuid programs... From FreeBSD.
2002-01-11 21:16:27 +00:00
jdolecek 1511af3e96 Resurrect the 'sc->sc_sbdsp.sc_dev.dv_cfdata = match' in pasprobe(),
it's needed for sbdsp.c:sbdsp_probe().
2002-01-11 17:45:10 +00:00
jdolecek 3c9a8d7d19 Fix fallout from previous - the 'sc->sc_dev.dv_cfdata = match' needs
to be retained, it's referenced in sbdsp.c:sbdsp_probe().
2002-01-11 17:33:01 +00:00
uwe 438dfde149 OBP 2.30 in JS1 is romvec version 3, so g/c PROM_OBP_V2 entry.
Add bare-bones "8042" (pckbc) node and rename bogus zs nodes out of
the way to prevent them from matching.
2002-01-11 01:44:32 +00:00
briggs e44b2beeac Add OPIOCFINDDEVICE to match dev/ofw/openfirmio.[ch]. 2002-01-10 20:38:11 +00:00
briggs 03bd9a6a52 In OPIOCNEXTPROP: if we are at the last property, set the buffer length to
0 instead of setting it to an uninitialized value (len).
2002-01-10 16:04:43 +00:00
haya 1e4fff76f0 Bug fix: correct chattering suppressor. Card insertion will be
detected properly by this fix.
2002-01-10 10:30:08 +00:00
someya 02501f9aa4 remove a unnecessary message print 2002-01-10 10:17:55 +00:00
wdk c09d9a0d03 We now need ufs/ufs/dinode.h for ufs/ffs/fs.h
XXX:  All this work for BBSIZE and SBSIZE.  Sigh.

Add missing $NetBSD$ Header to file
2002-01-10 06:56:18 +00:00
briggs 8a2ab2e5f8 Use nextsibling() and firstchild() instead of (unset) promvec. 2002-01-10 06:21:53 +00:00
enami fbb7401965 Cope with rev. 1.16 of frame.h; trapframe now starts at if_gs in intrframe.
This fixes PR#14040.
2002-01-10 03:46:17 +00:00
lukem 25ca00a979 Only pull in <sys/systm.h> #ifdef _KERNEL, since it's a kernel only header.
In the ! _KERNEL case, provide own prototype for panic() instead.
2002-01-09 23:51:00 +00:00
thorpej f68aaee236 - A few adjustments for cross-building (address an XXX here later).
- Create an OMAGIC a.out and objcopy it to a flat binary image; the
  Shark OpenFirmware can load the plain binary image, and we will
  need to employ this strategy when we switch to ELF.
2002-01-09 23:47:04 +00:00
thorpej 3c2bddcbc9 Fixup cache I$ clean code. 2002-01-09 23:18:10 +00:00
augustss 43aeee0fe8 Split out some code so you can have cardbus ehci without pci. 2002-01-09 22:56:22 +00:00
deberg 4d16c47eac descend into netsmb and fs 2002-01-09 21:51:53 +00:00
leo bbad0a5d5e Checkpointing my work on the mach64 (with help from Dave Berger). There is
still one major show stopper here. The characters are nearly to dim to read.
This is weird since the same DAC settings as on the other cards are used.
2002-01-09 21:33:49 +00:00
leo 2112cf1085 Fix PCI interrupt allocation on the Milan.
Note that this _seems_ to work. It can't be really tested before my board
is upgraded.
2002-01-09 21:19:14 +00:00
deberg b4fb0f417f comment out includes for now 2002-01-09 21:10:04 +00:00
deberg 4687da33a2 descend into smbfs 2002-01-09 21:07:54 +00:00
deberg 408ba63df0 smbfs makefile, INCLUDES commented out for now 2002-01-09 21:06:53 +00:00
reinoud b8eb6adfa1 Make the MACHINE_ARCH overrideable by build.sh 2002-01-09 20:54:40 +00:00
leo 62cf77fa90 Nuke some unused code. 2002-01-09 20:54:14 +00:00
drochner 5e6cfa6a09 print link status changes to the console 2002-01-09 19:37:02 +00:00
augustss 1a1f9d7acf Regen. 2002-01-09 19:29:39 +00:00
augustss 03027531da Add Intel 82801 and 82830. 2002-01-09 19:29:07 +00:00
drochner f9f119b62a cosmetics: print a "\n" terminated string if no "fw at fwohci" is
configured
2002-01-09 18:50:54 +00:00
drochner dcea5d31ee -don't apply scsipi_strvis() twice, it tries to octal-print the string
terminating zero and uninitialized dada following
-use use the "vendor" field for the name which is used in the default
 disklabel, the "product" field is meaningless or not existing for ATAPI
 (serial number)
2002-01-09 18:48:18 +00:00
deberg f2811d153f add smbfs files 2002-01-09 18:01:38 +00:00
deberg 4738ff87d6 netbsd changes 2002-01-09 17:43:28 +00:00
deberg f5cc2966a0 import freebsd smbfs code 2002-01-09 17:25:32 +00:00
rjs adde6b76ba Interrupt related defines for SA11x0. 2002-01-09 15:54:19 +00:00
dbj d864c1582a tweak timings 2002-01-09 05:23:07 +00:00
thorpej bd4e2862b0 We only need a single component buffer pool. 2002-01-09 04:21:43 +00:00
thorpej 229efaff69 Add ioctls to get (DIOCGCACHE) and set (DIOCSCACHE) cache enables
on disks in a generic way.  Implement these ioctls for SCSI disks.

This is not fully fleshed-out yet, but it allows people to experiment
with disk caches more easily.
2002-01-09 04:12:11 +00:00
oster 2ad74785a4 Move a bunch of debugging stuff to be only used if DEBUG is turned on. 2002-01-09 03:10:19 +00:00
thorpej 94f30b739f Add the BONITO_ICU_RETRYERR bit. 2002-01-09 02:35:29 +00:00
thorpej a3d15bab62 Build bonito_iobc.c 2002-01-09 00:44:57 +00:00
thorpej 4928315412 Update copyright. 2002-01-09 00:44:06 +00:00
thorpej d25ffb2822 Add code to manipulate the BONITO I/O Buffer Cache. 2002-01-09 00:43:38 +00:00
deberg 2cdce43be6 add SMBFS 2002-01-09 00:18:02 +00:00
bjh21 33096a0e18 Add a couple of ARM7500 registers I missed last time, and correct a couple
of others to match the names in the data sheet.
2002-01-08 21:00:12 +00:00
jdolecek 5f5971e8b7 Use 'X' constants in the conversion arrays instead of hexadecimal numbers,
to improve readability. No functionality change (values tested to be equal).
2002-01-08 20:44:13 +00:00
jdolecek 163a8c2246 make compilable with MSDOSFS_DEBUG (again), supply missing \n in
msdosfs_inactive() printf
2002-01-08 20:11:00 +00:00
deberg 9c0b4c4a97 use SMBDATA for devtbl 2002-01-08 19:52:16 +00:00
christos b5d5702d16 Deal with lossage caused by recent isa changes [/briq potr] 2002-01-08 17:20:44 +00:00
chs a6f2a36ecc include sys/systm.h for strcmp() prototype. 2002-01-08 17:10:28 +00:00
toshii 2e3ff494cb Remove fwait after fxsave.
Raising math exception from fpu_save causes machine reboots.
Also, this fwait would cause incorrect results, as pending exceptions
are to be handled later after fxrstor.
2002-01-08 13:31:04 +00:00
bouyer 2e06a41ea8 Fix typo in comment. Reported by Alexander Yurchenko in private mail. 2002-01-08 11:47:27 +00:00
rjs 1d49b1abec Establish interrupt handlers before enabling the clocks. 2002-01-08 11:40:56 +00:00
rjs 4bb5c4fa7c Add extra SA1111 register definitions. 2002-01-08 11:36:52 +00:00
rjs cd6d465f6b Add reset controller register definitions. 2002-01-08 11:29:51 +00:00
rjs 1b4e5cf968 Add check for microtime() being called before clock is initialized. 2002-01-08 11:21:02 +00:00
itojun 1cc58965b6 don't panic when there's no interface address exist for the specified multicast
outgoing interface (ia == NULL after IFP_TO_IA).

historic behavior (up to revision 1.43) was to use 0.0.0.0 as source address,
but it seems like a mistake according to RFC1112/1122.
2002-01-08 10:05:13 +00:00
uwe 6191cedbe6 In the idle loop add a comment to wrpsr in the annulled delay slot of
an ifdefed branch instruction to make it obvious where it belongs to.
The ifdef makes it very confusing visually.
2002-01-08 05:59:31 +00:00
itojun b0e82d3005 do not log() in per-packet input path. sync w/kame 2002-01-08 04:37:32 +00:00
itojun 8c7c7ff54b pss is broken (for now?) 2002-01-08 04:36:51 +00:00
thorpej 290ea9c6a7 le at pci -> pcn at pci, and add several more phys (most commented out). 2002-01-08 03:28:56 +00:00
manu c8d430d60d missing include 2002-01-07 23:12:30 +00:00
matt 3b0bdd1f0f Remove machine/powerpc links on clean as well. 2002-01-07 23:09:53 +00:00
chris 8dd3ca5994 Finish up the changes to get LOOSE_PROTOTYPES working for cats.
Note that this leaves a few inconsistencies (no more than we already had though) eg initarm is now prototyped in arm32/machdep.h, however only cats currently makes use of that header.
2002-01-07 22:58:07 +00:00
dbj f629228e87 Changes to the wdc(4) mi driver that add the WDC_CAPABILITY_SELECT
flag and a callback function which gets called whenever a target is
selected on a channel.

The macppc wdc driver needs to reprogram its timing register
differently for each target on a channel each time that target is
selected.  I also changed the ATA4_TIME_TO_TICK to use a divisor of
15, which brings our timing calculations consistent with darwin.

These patches fix problems on my dual usb ibook with combo dvd/cdrw
drive because the hard drive supports udma and the combo drive does
not.  Without turning off the udma timings in the configuration
register, I cannot access the non-udma combo drive.
2002-01-07 22:11:17 +00:00
manu 4398be0cfc Added code to correctly match and launch o32 and n32 IRIX binaires (note that
there is n support yet in the kernel for running n32 binaries)
2002-01-07 22:07:37 +00:00
manu 0b98511d4a Added code to match and launch n32 binaries (there is no N32 support in the
kernel yet)
2002-01-07 22:05:03 +00:00
thorpej 3835413bc1 Overhaul of the ISA autoconfiguration code to support direct
configuration of devices logically attached to the ISA bus:

* Change the isa_attach_args to have arrays of io, mem, irq, drq
  resources.
* Add a "pnpnames" and a linked list of "pnpcompatnames" to the
  isa_attach_args.  If either of these members are non-NULL,
  direct configuration of the bus is being performed.  Add an
  ISA_DIRECT_CONFIG() macro to test for this.
* Drivers are not allowed to modify the isa_attach_args unless
  direct configuration is not being performed and the probe fucntion
  is returning success.
* Adapt device drivers -- currently, all driver probe routines return
  "no match" if ISA_DIRECT_CONFIG() evaluates to true.
2002-01-07 21:46:56 +00:00
bjh21 f2b2562dd8 Don't print arm700bugcount at shutdown. I'm planning to make it into
an evcnt, so users can get at it using vmstat if they care.
2002-01-07 21:40:59 +00:00
bjh21 2b44bd85c5 On arm26, vectors.S needs to be at the start of the kernel text, so that it's
on a page boundary and can be mapped straight into zero page.  This means it
has to be in MD_SFILES on arm26, and not in SFILES.

This probably leaves kernel_text in the wrong place, but it at least leaves the system bootable.
2002-01-07 21:15:50 +00:00
jmcneill 898f375fa0 Re-enable radio at bktr. 2002-01-07 19:34:25 +00:00
jmcneill fad06cc1a6 Re-enable radio at bktr, only if NRADIO > 0 and an FM tuner is present. 2002-01-07 18:05:33 +00:00
drochner db154a4d20 "attach radio at radio":
using one word as both attribute and device doesn't work well,
radio.c is pulled in even with no such device in the configuration,
and the kernel doesn't link due to missing "radio_cd".
So call the attribute "radiodev" to avoid confusion.
2002-01-07 17:44:42 +00:00
thorpej 1c8e442315 Pull in files.wfont. 2002-01-07 17:36:40 +00:00
lukem 202e920175 revert part of rev 1.14 - #include <ufs/ufs/dinode.h> - because that
makes it MUCH more difficult to reference this file stand-alone.
2002-01-07 15:25:22 +00:00
tron 559521efa3 Disable broken radio(4) support for bktr(4). The configuration code doesn't
even check if the TV card has a radio tuner.
2002-01-07 12:12:55 +00:00
tron 2f741a258e Backout revision 1.155 which caused build failures if bktr(4) is used
without radio(4).
2002-01-07 11:58:28 +00:00
martin da249d7da1 Implement a retry counter for failed authorizations and limit it to
a configurable maximum (default: 5).

Some ISPs shut down accounts (at least temporarily) after to many bad
retries. This hit me recently due to a stupid pilot error and the fast
retry rate.
2002-01-07 10:49:02 +00:00
tron 65aa7d5e7c Clean up preprocess handling of optional radio(4) support a little bit. 2002-01-07 10:43:43 +00:00
shin a0a83ff5d4 fix pasto.
s/trunc_line/trunc_line16/
2002-01-07 07:43:52 +00:00
jmcneill 311329a369 Integrate recording support into the driver. Not very heavily tested yet. 2002-01-07 07:33:09 +00:00
thorpej a130e9e458 Implement bus_space_mmap(). 2002-01-07 07:17:17 +00:00
thorpej 059c98d5e4 Fix typo. 2002-01-07 06:03:19 +00:00
oster 19c2127b85 Revert previous. Need to be more careful with what gets chopped out. 2002-01-07 05:30:53 +00:00
minoura 4d762e1938 New toolchain.
XXX: New toolchain generates 100byte bigger object than the 8KB limit.
XXX: Therefore, compilation always fails!
2002-01-07 04:06:52 +00:00
minoura 195060e302 Copy alloca() and memcpy() definitions from libkern.h. 2002-01-07 04:01:13 +00:00
minoura 38d9c867f6 alloca() is now defined in libkern.h. 2002-01-07 04:00:30 +00:00
minoura 873ab50602 Use -Os optimization. 2002-01-07 04:00:02 +00:00
thorpej ddb7327122 Add missing register prefix. 2002-01-07 02:54:27 +00:00
oster 345de5b80a Some of this stuff is really just for debugging, so compile it only if
DEBUG is defined.
2002-01-07 02:27:42 +00:00
oster af9b7112ab #if 0 rf_SetReconfiguredMode() since it is unused now, but may be
needed someday.
2002-01-07 01:58:03 +00:00
deberg 7882fd04da gc unused M_NSMBDEV.
add comments reminding to mirror changes to the types list in malloc.9.
2002-01-07 01:02:19 +00:00
deberg 2935620216 add smbfs malloc types 2002-01-07 00:21:56 +00:00
tron 6a997e3c73 Compile in radio(4) only it is activated in the kernel configuration. 2002-01-06 23:19:18 +00:00
manu 3b176652b8 Fixed wrong file name. 2002-01-06 21:43:10 +00:00
manu 365eb49355 Added compat/irix/irix_syscallnames.c 2002-01-06 21:34:30 +00:00
thorpej d9f543962d Acorn systems do not support the ISA bus; remove these files. 2002-01-06 20:29:42 +00:00