Commit Graph

35138 Commits

Author SHA1 Message Date
enami
a54d060a1c Unhook the entropy source on detach. 2000-02-02 10:45:12 +00:00
enami
500a12d2e5 - No need to wait in pcic_chip_socket_disable. It was intended to keep
some period between disable and enable in spec, but is done in
pcic_chip_socket_disable.  And we also disable socket in pcic_deactivate_card,
we should do it in another way if it is really necessary.
- Shorten the wait message so that ps(1) and ps in ddb be happy.
- Replace newly added long delay with sleep.
2000-02-02 10:31:45 +00:00
enami
e16a469c8f Cosmetic changes. 2000-02-02 10:19:51 +00:00
itojun
17f5887294 implement if_detach code for ne/pcmcia.
XXX still incomplete, ne_pcmcia_detach() commented out for safery - please test
2000-02-02 10:00:06 +00:00
enami
a909d816d2 Add detach support. 2000-02-02 09:34:51 +00:00
enami
9cb8699ba1 Revoke bpf device on detach. 2000-02-02 09:03:41 +00:00
augustss
e4c766e299 Make sure to untimeout() things on detach. 2000-02-02 08:57:51 +00:00
augustss
82559ba682 Move detach operations around a little to simplify (and perhaps get it
right?).  Prompted by Jason, itojun and myself.
2000-02-02 08:41:00 +00:00
enami
983b6de129 Since we are allowed to wait, no need to check the return value. 2000-02-02 08:36:02 +00:00
thorpej
2af8db77c9 Grumble, forward decl for struct ifaddr. 2000-02-02 08:14:20 +00:00
itojun
f781f298a6 remove ns_purgeaddr() prototype - it's in netns/ns_var.h (added by thorpej) 2000-02-02 08:09:57 +00:00
augustss
4a6ae7bdfc Get rid of shutdown hook and attached media on detach. 2000-02-02 08:08:50 +00:00
thorpej
b2408b62bf Add missing prototype for ns_purgeaddr(). 2000-02-02 08:06:49 +00:00
thorpej
84dc99fdea Bring some order to the chaos which was the MII code function naming
"conventions".
2000-02-02 08:05:26 +00:00
augustss
ea45df4d30 Make sure to get rid of shutdown hook and ttach media on detach. 2000-02-02 08:00:21 +00:00
itojun
af1d56129f wrap bpfdetach() with NBPFILTER > 0. 2000-02-02 07:47:33 +00:00
enami
19bff8f913 Remove duplicated forward declarations. 2000-02-02 07:45:13 +00:00
augustss
481e8339dc Change the USB event mechanism to include more information about devices
and drivers.  Partly from FreeBSD.
2000-02-02 07:33:59 +00:00
augustss
0151072444 Make ep driver detachable. 2000-02-02 07:23:28 +00:00
augustss
2c371af454 Make ray driver detachable. 2000-02-02 07:22:06 +00:00
itojun
2111a79d6a add missing prototype for if_detach. 2000-02-02 05:07:57 +00:00
chopps
ea37d51548 do something more like pccbbs chip_enable. don't enable interrupts
until we have everything else setup..
2000-02-02 04:45:21 +00:00
thorpej
0738a5d4ac Driver for the Davicom DM9101 10/100 Ethernet PHY. This PHY is found
on several inexpensive 10/100 Ethernet boards (e.g. D-Link DFE-530TX,
Winbond 10/100 boards), and is also the built-in PHY on the DM9102
10/100 Ethernet chip.
2000-02-02 04:29:49 +00:00
thorpej
e1aef0ac87 If there is no BIOS32 present, don't try to call into it. 2000-02-02 04:09:37 +00:00
shin
62bc319e2c add '#ifdef VR41X1' for TX3900. 2000-02-02 03:14:31 +00:00
thorpej
dcc6a1beb0 Bump version to 1.4R -- PRU_PURGEADDR, and slightly more stringent semantics
on ifaddr reference counting.
2000-02-01 23:00:41 +00:00
chopps
4483fc0f5f restore irq 10 to pcic_isa_intr_alloc_mask 2000-02-01 22:56:17 +00:00
thorpej
001748dc57 First cut at detach support; doens't fully work yet. 2000-02-01 22:54:47 +00:00
thorpej
db8dc44033 Add support for detaching the interface. 2000-02-01 22:53:14 +00:00
thorpej
d844a3ac41 First-draft if_detach() implementation, originally from Bill Studnemund,
although this version has been changed somewhat:
- reference counting on ifaddrs isn't as complete as Bill's original
  work was.  This is hard to get right, and we should attack one
  protocol at a time.
- This doesn't do reference counting or dynamic allocation of ifnets yet.
- This version introduces a new PRU -- PRU_PURGEADDR, which is used to
  purge an ifaddr from a protocol.  The old method Bill used didn't work
  on all protocols, and it only worked on some because it was Very Lucky.

This mostly works ... i.e. works for my USB Ethernet, except for a dangling
ifaddr reference left by the IPv6 code; have not yet tracked this down.
2000-02-01 22:52:04 +00:00
chopps
d8e72e215d implement probing for available irqs on non-cirrus pcmcia controllers
including cardbus controllers running in pcic mode
2000-02-01 22:39:51 +00:00
veego
064dbd29ad Only print one 'IP Filter:' line when it gets enabled or disabled. 2000-02-01 21:41:36 +00:00
jdolecek
88a4a819b8 When renaming a file, make sure apporpriate vnode cache entry is
purged if a file system entry is removed. Fixes part of kern/8037.

Reviewed by: Wolfgang Solfrank
Tested by: jdolecek
2000-02-01 21:33:57 +00:00
veego
b3bffdf856 Resolve conflicts. 2000-02-01 21:29:15 +00:00
thorpej
9069b40366 Add a sanity check to ensure that a region being free()'d is actually
within the KVA range malloc() would return.
2000-02-01 19:37:58 +00:00
thorpej
0cf304bb45 Always use BWX for bus access on Pyxis chips. 2000-02-01 19:29:28 +00:00
thorpej
474894e5f6 Fix a bug in cpu_switch() introduced with the MIPSX_CPU_IDLE changes; we
have a 1 instruction delay after a load before the register contents are
valid on the R2000/R3000.
2000-02-01 18:49:03 +00:00
thorpej
1247bea5c2 No need for mips_locore_jumpvec to be initialized data. 2000-02-01 18:38:50 +00:00
soren
f43a171804 Match PNP0510 as well. 2000-02-01 18:33:22 +00:00
augustss
e7f114ba6d Make sure to use delay() in usb_delay_ms() while cold booting. 2000-02-01 17:46:17 +00:00
jdolecek
c4d3702f61 msdosfs_lookup(): reformat some debug printf slighly to make them more readable 2000-02-01 13:59:34 +00:00
jdolecek
d69188d4e8 msdosfs_inactive(): correct debug printf to only claim MNT_RDONLY is set
if it's so
2000-02-01 13:55:23 +00:00
jdolecek
0e45514ac9 make compilable with MSDOSFS_DEBUG (adapt to usecount & writecount size change) 2000-02-01 10:33:18 +00:00
enami
11264e95ef Regen. 2000-02-01 10:21:00 +00:00
enami
ad68157d83 Add an entry for Melco WLI PCM (but driver isn't available yet). 2000-02-01 10:19:51 +00:00
enami
25b484e01a Pass an appropriate value as alignment (0 is not such a value). 2000-02-01 10:12:04 +00:00
enami
d549d0992b Rearrenge code a bit for the sake of another device. 2000-02-01 10:00:41 +00:00
enami
db644f36ea Cosmetic changes. 2000-02-01 08:58:25 +00:00
enami
98ba9b6a65 Sync awi_pcmcia_get_enaddr with mbe_pcmcia_get_enaddr. 2000-02-01 08:52:05 +00:00
enami
f06ba20199 RCS Id police. 2000-02-01 08:43:25 +00:00
enami
82cf6568cf Sync wi/ if_wavelan_ieee.h version 1.4 of FreeBSD. 2000-02-01 08:23:37 +00:00
enami
19aa9f2cbb The workaround for Hagiwara SYS-COM Compact Flash card is no longer necessary. 2000-02-01 06:48:15 +00:00
enami
a945b488ae Regen. 2000-02-01 05:51:31 +00:00
enami
032ef78e07 Print more detailed name for Corega ethernet cards. 2000-02-01 05:50:18 +00:00
augustss
6393288539 Put some #ifdefs around power and shutdown hooks. 2000-02-01 05:42:52 +00:00
enami
3669884c32 Factor out a common functionality into a subroutine. 2000-02-01 05:28:01 +00:00
tsutsui
11c8f56d48 Revert STRIPPROG -> STRIP 2000-02-01 05:25:24 +00:00
mhitch
a50bf9a39a Include word access methods with stride 4.
Add a byte-swapping access_method array for use with MI wdc driver.
XXX Currently only read_multi_2 and write_multi_2 are used by MI wdc code;
XXX The other byte-swapping routines still need to be added.
2000-02-01 05:21:24 +00:00
mjacob
d166ec2056 Do not forget to init intr_private 2000-02-01 04:14:18 +00:00
danw
33051e5117 Use device_register to find the boot device more reliably. Should now work
on anything it's possible to boot from that we have a driver for.
2000-02-01 04:04:17 +00:00
danw
aedaba9bc9 add strtoul 2000-02-01 04:02:59 +00:00
danw
f77befbc84 #define __HAVE_DEVICE_REGISTER on ports that have it, and check for
that, rather than a list of architecture defines, in config_attach
2000-02-01 04:01:19 +00:00
nisimura
be6d4a9d34 Fix chrtoblktbl[] array to reflect reality. 2000-02-01 02:59:30 +00:00
nisimura
5b465690f2 Have .set mips3 directive to make it consistent with other *.S files. 2000-02-01 02:30:20 +00:00
assar
a49e53d3df (sys_open, sys_fhopen): remove declaration of vnops, now in
<sys/file.h>
2000-02-01 01:24:38 +00:00
assar
e4b59906e1 (exec_script_makecmds): remove declaration of vnops, now in
<sys/file.h>
2000-02-01 01:23:29 +00:00
assar
5b428483d9 add declaration for `vnops' 2000-02-01 01:22:45 +00:00
thorpej
33e8c5b1df Improve the readability of one small piece of code. 2000-02-01 00:18:29 +00:00
itojun
ae788a8a43 sync with current code. now IMPLEMENTATION doc is almost identical
to the latest KAME one.
2000-02-01 00:15:22 +00:00
thorpej
3b5706e2e5 Fix a couple of whitespace glitches. 2000-02-01 00:07:50 +00:00
thorpej
637a2eee6e Use ifatoia() and sintosa() consistently, rather than using home-grown
casting macros intermixed.
2000-02-01 00:07:09 +00:00
thorpej
1cb24101b9 Small amount of cosmetic cleanup. 2000-02-01 00:05:07 +00:00
thorpej
3bf4c0f68b Small cleanup. 2000-02-01 00:02:01 +00:00
thorpej
af62350e32 Un-obfuscate a small bit of code. 2000-02-01 00:00:22 +00:00
thorpej
891a2a9719 Implement bpfdetach(). 2000-01-31 23:06:12 +00:00
mhitch
1d24598795 Add check for wdc [MI wdc support].
Move 'cd' device back to end of the genericconf table - we want to check
the 'wd' device before the 'cd' device.
2000-01-31 22:51:53 +00:00
mhitch
f12b50fc81 Add the wd devices for MI wdc IDE drive support. 2000-01-31 22:49:12 +00:00
eeh
64f779675a Fix a couple more references to STRIPPROG. 2000-01-31 22:47:11 +00:00
mhitch
97107f760d Add the config information for the MI wdc support. 2000-01-31 22:47:07 +00:00
mhitch
554647f636 Semicolons in the 32-bit macros aren't nice.
Add a stride-4 with swapping bus_space_method for use by MI wdc.
2000-01-31 22:43:36 +00:00
augustss
daa36b1b58 Rename TAILMASK to HEADMASK, since it really masks the head pointer.
From FreeBSD.
2000-01-31 22:35:13 +00:00
augustss
cc46ffeb91 Change where the has table for physical-to-virtual address translation
is handled.  Partly from FreeBSD.
2000-01-31 22:09:13 +00:00
augustss
964e21e33a Use ${RM} 2000-01-31 21:08:11 +00:00
augustss
ae4bbc4485 Fiddle with over-current protect when turning on port power to make
things work for some OHCI controllers.
2000-01-31 20:17:25 +00:00
augustss
c9aa323521 Change the way the HC done method is invoked a little. 2000-01-31 20:13:07 +00:00
kleink
09dd6fc81d Make these build again after buf.h/disksort changes. 2000-01-31 19:04:52 +00:00
thorpej
547bd53f89 Add support for the SiS 7016. 2000-01-31 18:36:12 +00:00
thorpej
f457f7c969 Regen. 2000-01-31 18:34:51 +00:00
thorpej
a2efc77ee1 Add SiS 7016 10/100 Ethernet. 2000-01-31 18:34:19 +00:00
christos
3cb8a24438 Regen 2000-01-31 16:41:20 +00:00
christos
7ccc44e6f7 __semctl13 -> ____semctl13 2000-01-31 15:59:58 +00:00
christos
72ff1dee2f Regen 2000-01-31 15:53:46 +00:00
christos
44b3655e9d __semctl13 -> ___semctl13 2000-01-31 15:53:01 +00:00
soda
e44d6b7781 ELF*_MACHDEP_ENDIANNESS was undefined. 2000-01-31 15:51:35 +00:00
soda
f227455441 make "make build" work 2000-01-31 15:50:13 +00:00
christos
3d9c5d0450 Regen 2000-01-31 15:13:24 +00:00
christos
3cbe025990 __semctl13 -> ____semctl13 because this now is not called directly.
The fourth argument to it is a pointer to union semun not union semun,
because passing structs and unions to syscalls cannot be handled portably.
2000-01-31 15:12:30 +00:00
pk
00ba4de9e2 Add si' and sw' controllers to device_register() tables. 2000-01-31 15:08:25 +00:00
itojun
1a2a1e2b1f bring in latest KAME ipsec tree.
- interop issues in ipcomp is fixed
- padding type (after ESP) is configurable
- key database memory management (need more fixes)
- policy specification is revisited

XXX m->m_pkthdr.rcvif is still overloaded - hope to fix it soon
2000-01-31 14:18:52 +00:00
takemura
dbbc9025d2 Add 'Reverse Video' check box.
Now 'Black-on-White screen is default.
2000-01-31 12:45:29 +00:00
shin
fdd3f14b2a add BTN_COVER for MC-R700, MC/R730. 2000-01-31 11:44:01 +00:00
bouyer
425e99ac00 Check that we can handle the inode size before mounting the fs, and correct
a return value.
2000-01-31 11:34:55 +00:00
itojun
63fd2c0262 destination port == 0 is illegal based on RFC768.
(NetBSD PR: 9137 - I thought I committed this already but I wasn't)
2000-01-31 10:39:26 +00:00
itojun
9b7c3e737a be proactive about malicious packet on the wire. we fear that v4 mapped
address to be used as a tool to hose security filters (like bypassing
"local host only" filter by using ::ffff:127.0.0.1).
2000-01-31 10:33:22 +00:00
haya
2e9b49c888 Force power off when a CardBus card is detached.
Use tsleep when kernel thread works.
2000-01-31 08:49:07 +00:00
thorpej
a72f993570 When possible, use ring mode for descriptors. Not only is this slightly
more efficient on genuine DEC chips, but some clones apparently Lose Badly
if you use chain mode.  To further complicate things, some clones *only*
do chain mode, so make this whole mess conditional.
2000-01-28 23:23:49 +00:00
thorpej
59fbdbb7cb Just use a regular Tx descriptor for the setup packet; don't bother with
a separate one.
2000-01-28 22:23:58 +00:00
thorpej
cb239424d0 Fix part of previous commit. 2000-01-28 18:27:41 +00:00
augustss
839e3f4725 Make it possible to read /dev/usb so the USB event mechanism can be used. 2000-01-28 17:26:03 +00:00
cjs
26944f9bf6 Add bpp (parallel port) device. 2000-01-28 16:08:52 +00:00
bouyer
be4a409b30 Correct (minor) bogons in filetype option support, and add support
for sparse_super option
2000-01-28 16:00:23 +00:00
pk
f18d4a028b Define the fixed hme PHY addresses. 2000-01-28 15:52:34 +00:00
pk
437ad6d192 Reset audio chip on device open. 2000-01-28 15:49:44 +00:00
pk
8b07bf2245 standard nomencature: bp -> bh 2000-01-28 15:47:18 +00:00
pk
a5d6b10bad fdcstatus() formatting. 2000-01-28 15:46:20 +00:00
takemura
39bbf02101 Delete unused lines. 2000-01-28 15:18:32 +00:00
takemura
ae6160e233 CPU specific idle hook and VR idle routine. 2000-01-28 15:08:36 +00:00
takemura
48205b1acc Delete unused lines. 2000-01-28 15:02:11 +00:00
augustss
ef79cf035a Correct error message list. From Nick Hibma. 2000-01-28 13:32:55 +00:00
enami
6e5c754b80 Set the right ethertype in LLC header for PVC interface.
Pointed by onoe@sm.sony.co.jp
2000-01-28 13:27:29 +00:00
pk
2f0be0855f pv_unlink4m: correctly clear the PV_ANC flag. Noted by Artur Grabowski. 2000-01-28 13:06:02 +00:00
jdc
adedf8475e BUFQ_* fixes. 2000-01-28 11:30:22 +00:00
augustss
119272426a Fix typo. From Nick Hibma. 2000-01-28 10:19:48 +00:00
hannken
a6ee792cee The decision that `disksort_cylinder' uses to decide if the buffer needs
to go to the inversion list is incomplete. If the cylinders are equal
block numbers must be checked.

This caused lockups if some buffers with the same cylinder were cycling
through the list, as it may happen with softdep enabled.

Fixes PR #9197.
2000-01-28 09:27:38 +00:00
chs
26c744c85b remove a debug printf that has outlived its usefulness. 2000-01-28 08:02:48 +00:00
itojun
591ffe9e30 wrap "DAD start" message into #ifdef DIAGNOSTIC.
From: thorpej, "Soren S. Jorvang" <soren@wheel.dk>
2000-01-28 07:21:29 +00:00
shin
e35089652c platid regen. 2000-01-28 06:22:53 +00:00
shin
8f9ba8c314 add MC/R730 2000-01-28 06:22:10 +00:00
shin
69cb6f62a5 add MC/R730 platid. 2000-01-28 06:21:49 +00:00
nisimura
9ddaa2112f Nuke isbad(), and fix typos. 2000-01-28 02:25:24 +00:00
augustss
8cc78f4f7d Small restructuring: break out opening of pipes into its own function. 2000-01-28 00:51:25 +00:00
augustss
3eccf22362 GC a #define. 2000-01-28 00:45:55 +00:00
augustss
30f0efb4f2 Add uhci_root_ctrl_done() method. 2000-01-28 00:44:27 +00:00
augustss
9cd4bf4652 Remove the hack that handled truncated transfers. 2000-01-28 00:29:53 +00:00
augustss
4e9e8e52f4 Change the test to check if transfers are done. The old test was broken
and sometimes reported transfers as done prematurely.
This fix seems to stabilize the Ethernet drivers.
2000-01-28 00:15:54 +00:00
augustss
3c27de72ac Fix typo in tailp bit defines. From Nick Hibma. 2000-01-28 00:11:38 +00:00
augustss
10dd6e61c3 Regen. 2000-01-28 00:09:19 +00:00
augustss
d4dda219e1 Fix typo. 2000-01-28 00:08:57 +00:00
mjacob
77e40e844d Add some defines for TLSB interrupt mask and summary registers. Update
copyright.
2000-01-27 22:27:50 +00:00
tsubai
22a3504708 Make this work on the G4 too. 2000-01-27 17:39:20 +00:00
bouyer
68e6de32b3 Add missing '#include "opt_vax630.h"' for custom kernels. 2000-01-27 17:06:55 +00:00
bouyer
e7ea87d850 Adapt for matt's changes. 2000-01-27 16:58:44 +00:00
thorpej
c74e0a8db2 Add detachment support to the MII layer. 2000-01-27 16:44:30 +00:00
tsubai
ecd94f5ee0 s/NUMODEM/NUCOM/ 2000-01-27 15:41:19 +00:00
tsutsui
249975c3c9 Revert (accidentally removed) MAXSLP macro. 2000-01-27 09:47:12 +00:00
soda
7978d0205b - _MACHINE_ARCH was undefined, MACHINE_ARCH was wrong.
- make "make includes" work
2000-01-27 07:50:02 +00:00
soda
39cd3507d2 make "make includes" work 2000-01-27 07:49:13 +00:00
sato
76d3003c00 - add MC-R510 & MC-R530 cover button.
- add MC-R530 application dial button.
- add comment for no RTC_OFFSET.
2000-01-27 06:55:26 +00:00
sato
6591d38772 - modify debug stuff.
default all disable.
2000-01-27 06:28:41 +00:00
sato
9dbdea95dd - show bus clock freq setting and memory clock freq setting in boot time. 2000-01-27 06:25:54 +00:00