Commit Graph

48291 Commits

Author SHA1 Message Date
simonb 5439e1a9ff Put the prototypes for bcmp() and bzero() back (ifdef _STANDALONE) so that
libsa builds again.
2001-07-07 12:23:43 +00:00
ichiro c65c21e1f7 bcopy -> memcpy
bzero -> memset
2001-07-07 10:43:11 +00:00
toshii 35836fce7a bcopy -> memcpy, bzero -> memset. 2001-07-07 09:19:39 +00:00
scw c1ab2b5460 bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
2001-07-07 09:06:43 +00:00
toshii 5455a9ad87 Use platid based mechanism to select PCMCIA socket voltage. 2001-07-07 08:45:43 +00:00
ichiro 2ee26bb302 s/saip_softc/sa11x0_softc 2001-07-07 08:10:15 +00:00
simonb 6555a67971 Catch up with (2 month old!) changes to dev/scsipi/scsi_all.h so pmax MD
SCSI kernels work.
2001-07-07 07:52:02 +00:00
scw ff267f1e06 bzero -> memset
bcopy -> memcpy
bcmp -> memcmp
2001-07-07 07:51:37 +00:00
ichiro b1a5e525b8 mapping extended GPIOs
iPAQ: Extended GPIOs appears at address 0x41000000
2001-07-07 07:04:56 +00:00
ichiro cd3fb67f14 bzero->memset, bcopy->memcpy 2001-07-07 06:29:13 +00:00
tsutsui fe30b5a627 bzero() -> memset() 2001-07-07 06:24:00 +00:00
perry 0d05392733 bzero->memset, bcopy->memcpy 2001-07-07 05:58:12 +00:00
perry 7ab9c62227 Remove bcmp and bzero prototypes. And yes, I actually checked and
tested this time. (Slap self repeatedly.)
2001-07-07 05:42:16 +00:00
thorpej c2c26e1362 bcmp -> memcmp 2001-07-07 05:35:39 +00:00
perry b2237246e2 I'm an idiot. 2001-07-07 05:22:10 +00:00
perry 9d7de51394 Add memcmp, memcpy, memmove and memset prototypes, which should have
been here a long time ago.

XXX should this file be un-__P'ed in the new regime? It isn't used in
userland...
2001-07-07 05:15:56 +00:00
tsutsui 6005077f81 bcopy() -> memcpy() (I guess there is no overlap here) 2001-07-07 05:09:43 +00:00
perry 7a31be3198 move the bcopy macro back to generating memcpy.
Here is why:

kernel bcopy and userland bcopy semantics were never the same. bcopy
in the kernel did not traditionally handle overlap.
ovbcopy in the kernel was the traditional "overlapping bcopy".

Lets take a step back here. The point of the macros was to provide
legacy interfaces so we could transition to mem* without disrupting
large parts of the code still being repeatedly merged, like the KAME
merges in net*/. Having purged the last ovbcopy from the kernel,
replacing them all with memmove, we didn't need ovbcopy any more so we
didn't need a macro.

Now, by leaving bcopy as memcpy, we make it clear that if you are
purging bcopys, you should replace them with memcpys. If we used
memmoves everywhere, it would lose very painstaking optimizations made
in the original code during which the ovbcopy/bcopy distinction was
held. Making bcopy into memmove is BAD BAD BAD.

It has been argued we should add an ovbcopy->memmove macro, but that
is precisely what we do not want -- if someone needs ovbcopy, what
they really want to write memmove, not ovbcopy. We don't want NEW code
with ovbcopy, having laboriously gotten rid of it.

In fact, the bcopy/bzero/bcmps in the kernel should all be purged. We
held off on doing net*/ to make the kame merge easier, and similarly
held off on some other places, but the time has come.

Anyway, for all these reasons, bcopy is changed back to memcpy.
2001-07-07 04:14:43 +00:00
thorpej 9ec2341af3 Add support for jumbo Ethernet frames on the DP83820. 2001-07-07 02:32:38 +00:00
mjacob 0134959e74 If I've told myself once, I've told myself 1000 times- *NEVER* commit
w/o test compiling first. Argh. I nuked one extra line that I shouldn't
have.
2001-07-07 01:44:21 +00:00
thorpej cf65d4738c Add a bunch of Vital Product Data definitions. 2001-07-06 20:20:55 +00:00
chris 4c32798eb8 Implement proper versions of kenter_pa and kremove, I've based them on versions provided by Richard E. 2001-07-06 20:15:13 +00:00
scw 8593b82c71 One less item (h/w assisted soft interrupts) 2001-07-06 20:12:34 +00:00
scw 35110949ce Ditch the `simulated' software interrupt in favour of
hardware-assisted soft interrupts on all boards.
(Note: VMEChip2-less 162/172 not yet tested)

This greatly simplifies the `rei' path and allows
interrupt nesting to be tracked somewhat more easily.

As a result we now have a working CLKF_INTR() macro
and can detect uvm_fault() being called from an interrupt
(although there may still be a very short race detecting
the latter; need to investigate further).
2001-07-06 19:00:12 +00:00
mcr ddb7c50037 added bridge secondary bus reset macros. 2001-07-06 18:07:16 +00:00
mcr aa7bfea672 split pccbb_intr_route() into seperate function. 2001-07-06 18:06:59 +00:00
mcr c34df0c33d cardbus attachment for PCI-PCI bridges 2001-07-06 18:05:59 +00:00
mcr 90e0ca31dd record handles for memory and io spaces 2001-07-06 18:05:25 +00:00
mcr 97eac1b54c context argument added to pci_device_foreach(). 2001-07-06 18:04:58 +00:00
mcr b44d7d55a5 added some debugging to error message in pci_intr_map(). 2001-07-06 18:04:22 +00:00
mcr 07ba5352f1 extra argument to pci_device_foreach(). 2001-07-06 18:03:47 +00:00
mcr 8c020dd2f7 when fixing up buses, keep track of the parent of each bus,
and the pcitag to access the primary side of that bridge.
2001-07-06 18:03:17 +00:00
mcr 6244484599 added context parameter to pciaddr_resource_{reserve,allocate}
and to pci_device_foreach().
	added new function pci_device_foreach_min().
2001-07-06 18:02:35 +00:00
mcr b76e5c586a added some error checking on return from rbus_new_root_share(). 2001-07-06 18:01:26 +00:00
mcr 74ed6c9ddb new config file for M700 notebook with Cardbus and CBII support 2001-07-06 18:00:50 +00:00
toshii 70e10fb682 Remove bcmp, bcopy and bzero. We don't need them as they aren't
called from asm code, and we shouldn't have them if we don't need them.
2001-07-06 17:35:44 +00:00
thorpej 2861457faf Fix a typo in htosonic32(), pointed out by soda@netbsd.org. 2001-07-06 16:20:07 +00:00
mjacob f0ba6b733c White space cleanup. Fix oopslet about having overlapping loop states.
Handle FW crashes as an isp_async call. Reclaim a missing logging level
bit.
2001-07-06 16:19:10 +00:00
mjacob 3628ea89ae Add some wads more definitions. Add macros for request/response queue
in/out pointer access.
2001-07-06 16:18:08 +00:00
mjacob 70d59a5876 Minor comment update. 2001-07-06 16:17:36 +00:00
mjacob 5089fba315 Defer turning off the no_mbox_ints flag until after the system is ready
for interrupts. Handle FW crashes in outer layer.
2001-07-06 16:17:17 +00:00
mjacob 092afb0ce9 More 2300 support: macroize access to request/response in/out pointers. 2001-07-06 16:16:11 +00:00
mjacob 9386c78f88 Some whitespace cleanup. Initial forcelout support.
Fix longstanding bug where we should have been checking
against Channel B's settings to see whether to apply tag
usage. Oops.

Some more 2300 support- macroize access to request queue in/out pointers.
Firmware crashes now handled in platform outer code via an isp_async call.

If we get a LIP, and we're on a private or public loop, kill off all
active commands as if they had been killed by a 'SCSI Bus Reset'. I've
seen data corruption on commands that complete 'normally' after a LIP.
Bad.
2001-07-06 16:15:38 +00:00
mjacob 48e09f672e twiddle isp_xflist calculation to match more closes isp_pci.c 2001-07-06 16:09:38 +00:00
perry dedadee3db "safe" the macros for bcopy bzero and bcmp, after a request from mrg 2001-07-06 15:59:23 +00:00
jdolecek fc4f1858f0 update 2001-07-06 12:38:40 +00:00
lukem dafe2b38ba freebsd kqueue implementation 2001-07-06 08:01:32 +00:00
chs e185109424 implement pmap_k{enter_pa,remove}() correctly.
other misc cleanup.
2001-07-06 05:57:13 +00:00
chs c844daf5ab use pmap_k* for pagemove().
call pmap_remove() explicitly in vunmapbuf() in preparation for
upcoming UVM changes.
2001-07-06 05:53:35 +00:00
itojun c3740d7821 IP6_EXTHDR_GET0 had no check against m->m_len (noone was using this macro).
sync with kame
2001-07-05 23:41:07 +00:00
tv cc1cf30d01 bcopy() is documented as allowing overlapping memory regions. Define it
in terms of the standard name memmove() to account for this.
Fixes kern/13369 and the redundant lib/13370.
2001-07-05 21:51:10 +00:00
thorpej 583274a82c For product names that include the media in the name, don't bother
saying "Gigabit".
2001-07-05 21:27:31 +00:00
hubertf 9f773decdf fix typo in comment 2001-07-05 20:54:28 +00:00
thorpej fd1fd6bb0f If using the hardware cursor, make sure the cursor shape is initialized,
otherwise we won't be able to see anything if the system firmware has
either not initialized it, or initialized it to "invlisible".
2001-07-05 16:45:23 +00:00
thorpej a06fbc7e4c If the target failed to respond to selection, use XS_SELTIMEOUT,
not XS_DRIVER_STUFFUP.
2001-07-05 16:02:21 +00:00
thorpej 5c0f65ea82 Do a little manual CSE, taking unneeded comparisons out of loops,
and shrinking the object code somewhat.  On an R4400:

Before:
text    data    bss     dec     hex     filename
16248   16      0       16264   3f88    dp83932.o

Before:
text    data    bss     dec     hex     filename
14424   16      0       14440   3868    dp83932.o
2001-07-05 15:02:27 +00:00
soda afdb63beb4 a typo in comment. 2001-07-05 14:44:29 +00:00
thorpej 833e756e1e JAZZ front-end for the new MI SONIC driver. 2001-07-05 14:42:35 +00:00
thorpej b7ea2efc25 A new DP83932 ``SONIC'' driver, which uses bus_dma(9) and does I/O
directly to mbufs.  Handles both 32-bit and 16-bit, big- and little-
endian configurations of the chip (we could squeeze out some conditionals
yet, though).
2001-07-05 14:37:41 +00:00
toshii 4866f1a22b Fix typo. s/extention/extension/ 2001-07-05 08:38:24 +00:00
kanaoka 678e078f04 Add support for "Laneed LD-10/100CDA". 2001-07-05 08:03:45 +00:00
chs 30e0b596c7 implement pmap_k{enter_pa,remove}() correctly.
other cleanup in preparation for upcoming UVM changes.
2001-07-05 07:05:02 +00:00
eeh 707046cec7 New block bzero and bcopy. 2001-07-05 06:37:58 +00:00
eeh 96ee348323 New fpu handling code. 2001-07-05 06:34:56 +00:00
thorpej a1054ae7c6 D'oh, use the right bitbang ops for the DL10022, pointed out by
Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>.
2001-07-05 05:36:02 +00:00
thorpej a2985ca976 Fix variable names in the strict-alignment case. 2001-07-05 05:28:29 +00:00
itojun 1e8074db2e sort boot flag to alphabetical order. add -c. 2001-07-05 00:58:45 +00:00
thorpej d79f9adc90 Add another Lava serial board. 2001-07-04 22:39:11 +00:00
chs 7ebc99879b don't set PG_RDONLY on the lower layer's pages,
the lower layer needs to have control over that flag.
that didn't solve the whole problem that it was trying to solve anyway.
(the issue is that if we have create mappings to the lower layer,
we need to get rid of those when we copy the file to the upper layer.)
we'll have to figure out some other way to handle this.
2001-07-04 21:38:00 +00:00
chs c31ab668df in ext2fs_balloc_range(), clear PG_RDONLY on pages which now have backing store. 2001-07-04 21:16:01 +00:00
chs 2a7b0d97d6 in ufs_balloc_range(), clear PG_RDONLY on pages which now have backing store.
fixes PR 13353.
2001-07-04 21:08:48 +00:00
wiz e7313e53ae Fix typo in comment. 2001-07-04 20:34:03 +00:00
uch 18d4a16bc4 #ifdef notyet power on/off sequence code. it doesn't work. 2001-07-04 18:08:01 +00:00
bjh21 3452c0d0a3 Add PowerROM support to asc(4), csa(4), csc(4) and ptsc(4). Not tested much,
I'm afraid.
2001-07-04 17:54:18 +00:00
augustss 45ece248c0 Add an Abocom adapter. 2001-07-04 16:38:09 +00:00
augustss 17231dcaee Regen. 2001-07-04 16:37:47 +00:00
augustss d9fb01804c Add an Abocom adapter. 2001-07-04 16:37:26 +00:00
bjh21 1e0b1b7373 *sigh* and return 0 if we don't match the podule.
Need more coffee...
2001-07-04 16:36:52 +00:00
bjh21 bd4a0aae1b Remember to include <dev/podulebus/powerromreg.h>. 2001-07-04 16:35:20 +00:00
bouyer 1c51ff8336 Better fix for rev 1.94 (disable UDMA for SiS controllers with rev 0xd0):
Different chipsets have the same vendor/device/rev ID for the IDE controller,
but only one of them is buggy. So check dev/rev ID of the function 0
(pchb on the buggy one) of the same device to detect the buggy controller.
2001-07-04 16:26:17 +00:00
augustss 020d906c3a Null a pointer on error return. 2001-07-04 16:23:40 +00:00
bjh21 e02efcb8cc Add support for Oak and HCCS SCSI cards fitted with PowerROMs. Since this
depends on podloader support, it won't work on arm32 yet.
2001-07-04 15:01:08 +00:00
bjh21 fd74cdde9d Remove mistaken commit of "ethsc" reference. 2001-07-04 14:33:43 +00:00
ad 86e7fe72a4 Don't print the module description, since it doesn't mean much. 2001-07-04 14:17:58 +00:00
bjh21 3b7905c66f podulebus and podloader are now MI. 2001-07-04 13:58:45 +00:00
bjh21 b8a09ee766 Add dummy "podloader" functions on arm32, and move their declarations to the MI
header file.  This should allow MI drivers to use the podloader functions,
though obviously they'll have to be able to cope if podulebus_initloader()
fails.
2001-07-04 13:58:04 +00:00
bjh21 0be64cc691 Move "podulebus" and "podloader" declarations up into files.podulebus. 2001-07-04 13:49:24 +00:00
bjh21 67ace1b581 Gratuitously make podulebusprint() more standard. It now says:
ea0 at podulebus0 slot 2: address 00:02:07:dd:ee:16, 16-bit, SEEQ 8005
eb0 at podulebus0 [ netslot 0 ]: address 00:00:a4:54:42:cb, 16-bit, SEEQ 80C04

Netslots will be dealt with later (I didn't like the idea of just printing
"slot 8").
2001-07-04 13:38:36 +00:00
jdolecek 6d63e5d890 g/c WE_FLAGS_*, use DP8390_FORCE_{8|16}BIT_MODE instead WE_FLAGS_*
counterpart. Fixes kern/7295 by Martin Husemann.
2001-07-04 11:14:10 +00:00
jdolecek d3dad41a97 Add -DINET6 to CPPFLAGS, so that the check for pre-RFC2553 sockaddr_in6
is included.
Remove uipc_syscalls_43.c from (commented out) list, it's no longer needed.
2001-07-04 10:29:16 +00:00
jdolecek 17a1c4c337 Regen - modify to use linux_* wrappers for syscalls passing/fetching sockaddr 2001-07-04 10:26:28 +00:00
jdolecek 3ba502f406 modify to use linux_* wrappers for syscalls passing/fetching sockaddr 2001-07-04 10:25:32 +00:00
jdolecek 978d4eb77b remove no longer used variable
make 'osa' arg of linux_sa_get() const
2001-07-04 10:24:18 +00:00
jdolecek 8cbefdbb89 Do address family (AF_*) number translation for socket system calls which
pass socket address in our or out. This makes Linux programs using IPv6
working under emulation. This addresses kern/13279 by Jun-ichiro itojun Hagino.

Change sendmsg()/recvmsg() to expect the control information
to be passed the standard way (not 4.3BSD one, imlied by compat_43 code
or MSG_COMPAT). Linux uses different (arguably broken) CMSG_ALIGN() on some
architectures unfortunately, that would need to be handled eventually.

Also provide some other trivial stubs (like linux_sys_send()) to avoid
unneeded dependance on uipc_syscalls_43.c.
2001-07-04 10:09:24 +00:00
eeh 76159ce4fe Replace old bcopy with a much faster version. 2001-07-04 05:57:39 +00:00
itojun 0fec95079e better support for multiple IPv4 addresses on a single interface.
- consider non-primary (2nd and beyond) IPv4 address as "local", and prevent
  outgoing ARP.
- for routing entries generated by ARP, make sure to set rt->rt_ifa equal to
  rt_key, to help IPv4 source address selection for traffic to myself.
PR 13311.

caveats/TODOs:
- interface routes ("connected routes" in cisco terminlogy) is tied with the
  primary (1st) IPv4 address on the interface.  should be fixed with updates
  to rt_ifinit().
- source address selection for offlink locations.  1st address tend to be used
  with the current code
  (you can configure it right by setting rt->rt_ifa accordingly).
2001-07-04 02:29:58 +00:00
bjh21 204fa6d2ef The only use of poduleirqhandler() was commented out, so remove it to
avoid confusion.
2001-07-03 20:47:23 +00:00
uch fd5708022c recompile (by VC6) 2001-07-03 20:40:07 +00:00
uch d9d3df290a reserve correct size of kernel symbol table. 2001-07-03 20:38:03 +00:00
scw 6d598bac6d Another instance of the MD siop driver which slipped the net... 2001-07-03 17:36:01 +00:00
chs 2f9d61f48e vm_offset_t -> [pv]addr_t. 2001-07-03 14:40:41 +00:00
itojun 7925bc6220 properl y check DES weak key. KAME PR 363 2001-07-03 14:29:45 +00:00
nathanw c45675aa2b The machine check error code is reliably located at an offset of 0x10
in the logout frame. Print it for all fatal machine checks on all
models.
2001-07-03 13:55:42 +00:00
soda cca727ab8c forgot to remove this, when arc/include/pci_machdep.h was added.
pointed out by Izumi TSUTSUI.
2001-07-03 11:26:50 +00:00
itojun d5b4c4a05d remove a #ifdef __OpenBSD__ segment. 2001-07-03 08:06:40 +00:00
itojun 193167b1eb call in{,6}_pcbpurgeif0() before in{,6}_purgeif(). 2001-07-03 08:06:19 +00:00
chs 640937fe85 change pmap_extract() to deal with unmapped addresses.
remove some unnecessary checks for unmanaged pages.
2001-07-03 07:34:27 +00:00
chs dcd6ab5a24 add coda_{get,put}pages so that mmap works. 2001-07-03 06:46:52 +00:00
chs 1e3003dad7 vm_offset_t -> [pv]addr_t.
implement pmap_k{enter_pa,remove}() correctly.
general cleanup.
2001-07-03 06:15:16 +00:00
chs a2dade9e8e move parts that are the same from vmparam3{,x}.h to vmparam.h. 2001-07-03 05:17:12 +00:00
enami 8b9f679d56 Adapt with recent md_root.c change; now you can put a root filesystem image
into separate file if boot loader allows.
2001-07-03 02:37:06 +00:00
bjh21 c6c9e5d915 Act as an entropy source for rnd(4). 2001-07-02 23:49:17 +00:00
bjh21 659b8ab115 Separate out netslot-specific code into its own file, so that one day we can
make it optional.
2001-07-02 23:18:34 +00:00
itojun ebdb9f12f3 typo (should we get rid of this portion? 2001-07-02 23:02:11 +00:00
jdolecek 6a07acfe9c #include <sys/select> implicitly in !_KERNEL case 2001-07-02 20:54:26 +00:00
jdolecek 4dd8293a6d Move CTL_PIPE_NAMES and KERN_PIPE_* from <sys/sysctl.h> to <sys/pipe.h> 2001-07-02 20:48:31 +00:00
jdolecek 9f7b135e53 g/c PIPE_MOREW 2001-07-02 20:44:17 +00:00
jdolecek 12aa43b8b1 Don't try to be too smart about chunking - if the data size is bigger
than PIPE_CHUNK_SIZE, just transfer first PIPE_CHUNK_SIZE and return short
write, expecting the caller to call us again later (if they need). Previous
behaviour (besides being wrong for O_NONBLOCK reads) hung hbench under some
circumstances and other applications may have similar expectations as hbench.
This might also fix port-vax/13333 by Manuel Bowyer.

Other changes to pipe_direct_write() include:
* return short write (and success) on EOF if any data were already read;
  we return EPIPE on next write(2) call
* simplify error handling, actually handle uvm_loan() failure correctly,
  call pipe_loan_free() on error explicitly and only call uvm_unloan()
  if the address space was _not_ already freed by pipe_loan_free()
  Thanks Chuck Silvers for uvm_unloan() hints :)

Fallthough to common write in pipe_write() if pipe_direct_write()
returns ENOMEM, otherwise always break out immediatelly.
Use uvm_km_valloc_wait() instead uvm_km_valloc() in pipe_loan_alloc().
2001-07-02 20:43:39 +00:00
uch e9040f302e use MI md_root.c 2001-07-02 17:19:09 +00:00
uch fd2c055c01 add MEMORY_DISK_DYNAMIC option. if enable MEMORY_DISK_DYNAMIC, file
system image's address and size are setted by md_root_setconf().
2001-07-02 17:17:23 +00:00
itojun 1ff38f4d03 on interface removal, remove multicast groups joined from pcb, before
removing interface addresses.  without the change, we may deref
NULL pointer in in_pcbpurgeif().  from jinmei@kame, sync with kame
2001-07-02 15:25:34 +00:00
ichiro 07a7db71f2 using bus_space_tag for salcd 2001-07-02 13:52:29 +00:00
onoe ff12a4271a performance improvement in fwohci_pkt_get() for asynchronous read. 2001-07-02 11:12:09 +00:00
onoe a924a0db99 set/reset low level receive handler according to IFF_UP flag of network
interface.
2001-07-02 10:46:03 +00:00
onoe 3a2ef358d9 fix typo: CLear -> Clear 2001-07-02 02:36:48 +00:00
onoe 7605dd5368 FW_DEBUG only: move descriptor dump from DPRINTFN(1) to DPRINTFN(2).
fix indent in packet dump.
2001-07-02 02:26:40 +00:00
matt f05d9cb58a Add PM_SR 2001-07-01 21:41:58 +00:00
matt cafc0288cf Add PM_SR. 2001-07-01 21:41:02 +00:00
matt 6357fdafe8 Add PM_SR 2001-07-01 21:39:17 +00:00
matt 54ec2573c9 Use consistent types for len. Limit sockarg length to reasonable values. 2001-07-01 20:42:48 +00:00
thorpej 5bdb21d48a Duh, use fd_getfile() in sys_close(). 2001-07-01 18:12:00 +00:00
thorpej ce232da4eb Regen; added Linux-compatible clone(2) system call. 2001-07-01 18:07:33 +00:00
thorpej 9377ba2c38 Linux-compatible clone(2) system call, lifted from the Linux
compatibility module.  Based on patches from Bang Jun-Young <bjy@mogua.org>.
2001-07-01 18:06:11 +00:00
jdolecek adc0c5d8f3 Add myself to the list, put e-mail addresses within '<' and '>' 2001-07-01 17:13:41 +00:00
thorpej d0f766fb5c Regen; use the generic close(2). 2001-07-01 16:55:41 +00:00
thorpej ee8334823e No need to have a SVR4-32 specific close(2). 2001-07-01 16:55:19 +00:00
thorpej e00f3a5560 Remove unneeded include files. From Onno van der Linden. 2001-07-01 16:35:36 +00:00
mrg 506cbe39be allow one to #define DB_MAX_LINE and DB_MAX_WIDTH independantly. 2001-07-01 12:16:25 +00:00
kleink e69c885f3e Sync with libc: use bzero-based assembly version of memset(). 2001-07-01 11:55:36 +00:00
martin 4c2e8da7bb Disable axidently enabled debug code to make -current compile again. 2001-07-01 09:25:33 +00:00
thorpej 7f109318f9 Protect the `pool cache group' pool with splvm(), so that pool caches
can be used by code that runs in interrupt context.
2001-07-01 06:12:20 +00:00
gmcgarry 741d001b9f Sort boot options. Add -c for userconf. 2001-07-01 02:58:38 +00:00
gmcgarry d6182a9e77 In-kernel device configuration manager - allows modification
of device locators at run-time.

Written by Mats O Jansson <moj@stacken.kth.se>.  Reworked by
Jun-ichiro itojun Hagino <itojun@netbsd.org>.
2001-07-01 02:56:20 +00:00
gmcgarry c1d6da70b5 Example options to reduce kernel memory footprint. 2001-07-01 02:16:33 +00:00
uwe 87345845e1 Make mhzc_alloc_ethernet search the right address range.
Fixes: kern/11451.
Reviewed by: thorpej
2001-07-01 02:16:25 +00:00
gmcgarry 284f72b8c2 Introduce NFS_DEFAULT_NIOTHREADS to define the default number
of nfs_niothreads instead of hard-coding 4.

This change has the advantage that the default can be specified
at compile time.  If the root filesystem is mounted over NFS
we don't have an opportunity to use the syscall to limit the
number of threads.  Useful on small-memory machines.
2001-07-01 02:13:35 +00:00
gmcgarry 52f5073f28 Jumbo patch:
- data alignment fix
- kludge around broken multicast by using promisc mode
  (IPv6 router solicitation now works)
- add support as random source
- support device power-up and power-down
- vlan support
- misc. comment and style fixes
2001-07-01 01:57:29 +00:00
gmcgarry a48df4b355 Garbage-collect unneeded rnd.h include. 2001-07-01 01:50:05 +00:00
gmcgarry a193512e18 Create an empty bootinfo structure. 2001-07-01 01:38:14 +00:00
thorpej 4f9dcdfb8a Split the receive interrupt handler into two versions, one for the
SiS900/DP83815, one for the DP83820.  In preparation for changes
to the DP83820 version for handling jumbo Ethernet frames.
2001-06-30 22:35:05 +00:00
kleink e2d6ca2037 Rename an IFM_1000_TX occurrence missed in previous. 2001-06-30 21:23:39 +00:00
tron 29dc8fc7e3 Install "dev/tc/sfbreg.h" which is required for building the Alpha X11
server.
2001-06-30 21:16:52 +00:00
mrg cfbef2cdef pause other cpus from KGDB. XXX: need to implement other cpu trapframe access. 2001-06-30 20:17:47 +00:00
mrg 6aec628d90 db_cpu_cmd is DDB specific; move it into the DDB specific portions of this file. KGDB compiles again. 2001-06-30 20:16:49 +00:00
mrg e7a53a87be for now, KGDB kernels do not have access to multiple cpu's trapframe. 2001-06-30 20:15:02 +00:00
mrg 9dbb764f88 KGDB needs both zs_putc and zs_getc; make them non-static. 2001-06-30 20:14:00 +00:00
eeh d7b32d756c Use a newer version (still disabled) of block bcopy. 2001-06-30 19:09:38 +00:00
bjh21 8d829065a6 IFM_1000_TX -> IFM_1000_T, as (breifly) discussed on tech-net. 2001-06-30 17:53:58 +00:00
thorpej 4e30120ef0 Sync the Tx descriptors pre- and post- on the Tigon 2. 2001-06-30 17:02:54 +00:00
bjh21 4397eef459 Make cpu_reboot do all the standard things. 2001-06-30 16:49:16 +00:00
thorpej f1ea6f5be0 When we're done setting up the General Information Block, sync it.
Sync the NIC-maintained stats structure as appropriate, as well.
2001-06-30 16:34:59 +00:00
bjh21 1b14f7d532 Also make it return something. See, Ben, you _do_ need to test every change. 2001-06-30 16:20:37 +00:00
bjh21 f7968131c1 Make arcvideo_show_screen() into a no-op, since it gets called on shutdown. 2001-06-30 16:19:12 +00:00
thorpej c05a96f530 Add macros to sync the various bits of the DMA'd control data. 2001-06-30 15:57:58 +00:00
thorpej d2a3ac835c Use macros (like those in every other network driver I have written)
to compute the offset of a structure in the DMA'd control data, and
the DMA address of that structure.
2001-06-30 15:39:51 +00:00
bjh21 2e95360b2f Add dtide and hcide, since they should work on arm32. 2001-06-30 15:09:38 +00:00
thorpej 83b199c106 Split the tx-end-of-frame routine into Tigon 1 and Tigon 2 verions,
for the same reason we split the tx encap routine.
2001-06-30 14:56:59 +00:00
thorpej ee9c81dd38 Split the transmit encap routine into two versions: one for the Tigon 1
and another for the Tigon 2.  This eliminates a conditional in the
loop around the DMA segments, and will make further cleanup easier.
2001-06-30 14:47:23 +00:00
thorpej 291a21d3fb Move the `ti_tx_ring_nic' pointer out of the ring-data structure
and into the softc.  Garbage-collect the `ti_cmd_ring' pointer,
since bus_space is properly used to access the command ring.
2001-06-30 14:16:55 +00:00
ragge 29455521b5 Do more intelligent calculation of KVM size. This reduces the amount of
pre-allocated physical memory significantly.
A 11/750, for example, get 2MB more free (of 14MB), about 12%.
2001-06-30 12:54:33 +00:00
darcy ce0ec1e208 Add System V semaphore resource limits to each GENERIC file that has an
option for System V semaphores.  It appears that there are no overrides
in the code and each file has the following added.

 options    SYSVSEM     # System V semaphores
+#options   SEMMNI=10   # number of semaphore identifiers
+#options   SEMMNS=60   # number of semaphores in system
+#options   SEMUME=10   # max number of undo entries per process
+#options   SEMMNU=30   # number of undo structures in system
 options    SYSVSHM     # System V shared memory

If anyone thinks that this is incorrect for any of these files, please
correct it.

Note - the i386 port was not forgotten.  It was done separately.
2001-06-30 11:00:31 +00:00
thorpej 6237e487ab When a transmit is complete, sync (and unload!!) the DMA map used
for the packet.  When setting up a packet for transmit, sync the
DMA map being used.
2001-06-30 05:48:24 +00:00
thorpej 17238bfd2b Move the Tigon/Tigon2 firmware, version 12.4.13+wpaul, to a
more appropriate location.
2001-06-30 04:33:11 +00:00
matt 454a630dbd Print both the lower and upper dbat register when printing dbat registers. 2001-06-30 02:03:16 +00:00
matt 39fa08a172 Reset segment registers 1-7 upon entry to kernel (via trap or interrupts)
so that the bat spill code won't run into spurious valid user pages and
treat them as kernel pages.  Restore segment registers 1-7 upon return to
user mode from either a trap or interrupt.   XXX  eventually do all 16 SRs
2001-06-30 01:24:13 +00:00
matt 7c5977ea4f Fix a spurious debug printf.
Fix pmap_procwr to not check a NULL pvo.  (Duh!)
Reformat pmap_print_mmuregs.  Actually *fill in* the dbat registers.
2001-06-30 01:21:24 +00:00
thorpej 2642760b40 Update for D-Link ST201 change. 2001-06-30 01:05:25 +00:00
thorpej cdfa27aeeb Regen. 2001-06-30 01:04:25 +00:00
thorpej 9556d5b2f9 Change the DLINK ST-201 entry, add more Sundance/DLINK Gig-E
products.
2001-06-30 01:03:59 +00:00
eeh 353e24fc8d Fix fpu save/restore code. 2001-06-30 00:09:08 +00:00
eeh 46392e4bee Fixup fpu save restore, get rid of some unused copy functions, and add
a new bcopy.
2001-06-30 00:08:15 +00:00
eeh 649ea57857 Handle proper saving of the fpstate. 2001-06-30 00:00:41 +00:00
eeh 32267affba Handle saving and restoring the fpstate properly.
(Are these functions ever called?)
2001-06-29 23:58:40 +00:00
thorpej f6bce1a60b Correct spelling of media in the product names. 2001-06-29 23:58:08 +00:00
eeh 5df2260776 Add the shorter version of block ASIs used by Sun. 2001-06-29 23:56:05 +00:00
thorpej abda6184c0 In the `copy small' path, make sure to align the payload. 2001-06-29 23:36:03 +00:00
thorpej ab5a996fc5 When setting an address on an interface, for address families which
do not require changing the link-level address, only (*if_init)()
if the interface is not already RUNNING.
2001-06-29 18:12:09 +00:00
toshii 56b40cd78a Fix autoconf related botch: do printf("\n") in attach funcs rather than
in cfprint.
2001-06-29 17:22:50 +00:00
toshii f1e3122487 Fix 3rd arg of config_search(). 2001-06-29 16:58:55 +00:00
toshii 5df8e31135 Probe SA1111's ID register. Fix 3rd arg of config_search(). 2001-06-29 16:58:17 +00:00
toshii 7b01bb9073 Add ID register location. 2001-06-29 16:54:55 +00:00
itojun 03927c60a5 call defrouter_select() only if it is autoconfigured host. 2001-06-29 16:01:47 +00:00
onoe 3fc5f5722d Fixes to make if_fw work:
- fwohci_arrq_input: Do not return if next packet is in the buffer,
    or the next packet cannot be received until the next receive interrupt.
- fwohci_uid_collect: XXX change M_WAITOK to M_NOWAIT for now, since there is
    no lock but only one instance must be allowed here.
  split fwohci_uid_req() and retry to get uid.
    XXX need timer to wait some moment between retries...
- Add DELAY(10) for wait loop.
- split fwohci_buf_stop() into _stop_tx() and _stop_rx() because receiver
    should not be stopped at bus-reset.
- split fwohci_buf_input() into _input() and _input_ppb() to improve
    performance slightly.
2001-06-29 14:57:24 +00:00
christos d136cfe99e regen 2001-06-29 14:57:17 +00:00
christos 8b753a3651 PR/13337: de SAINT LEGER Rodolphe: Add support for the cn40bc ne clone. 2001-06-29 14:56:21 +00:00
onoe 8601a37f8c Protect to call fw_start() recursively. 2001-06-29 14:46:54 +00:00
onoe 5cf8e98cb5 Experimental support for LEAP, which is cisco's implementation of IEEE802.11
EAP in aironet firmware.  Currently it seems that only cisco's RADIUS server
implements EAP for IEEE802.11, and the function is not tested at all.
2001-06-29 11:24:42 +00:00
jmc 4b9b2bd56c Add some additional values to the keyvalue list from draft specs as some roms are using these and it would be nice to be able to identify them 2001-06-29 04:52:35 +00:00
mrg 2307774c9a #include <machine/autoconf.h> 2001-06-29 03:32:10 +00:00
toshii ff7d26d2ed KASSERT current_intr_depth == 0 before uvm_fault. 2001-06-29 02:43:56 +00:00