Commit Graph

168333 Commits

Author SHA1 Message Date
mlelstv 23aa31d043 PPC systems predating prep and running the mvmeppc port
have compatible hardware.
2008-03-29 09:01:35 +00:00
tsutsui 7b2990dafa - split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
2008-03-29 08:14:40 +00:00
tsutsui 92c1d7b259 Fix thinko. 2008-03-29 07:35:04 +00:00
tsutsui 33ce2fbee5 Fix wrong type. 2008-03-29 07:20:01 +00:00
tsutsui 440f7c7b53 Split device_t/softc, and misc cosmetic changes. 2008-03-29 06:47:07 +00:00
tsutsui 58561d05b5 Use CFATTACH_DECL_NEW().
XXX: this one looks a bit strange because it's attached via nvram_pnpbus.c
2008-03-29 06:16:54 +00:00
tsutsui d54d70b6a7 We have to use device_private() to get softc from cd_devs[]. 2008-03-29 06:13:44 +00:00
tsutsui d062717c3f Don't forget to set sc_dev. 2008-03-29 05:48:33 +00:00
tsutsui 4090172b20 Don't forget to initialize sc_dev. 2008-03-29 05:42:45 +00:00
dholland 19f2a45a44 Correct/clarify the default setting of USETOOLS in the previous version.
Noted by apb.
2008-03-29 05:22:42 +00:00
nakayama 136678d875 Fix ohci brokenness in previous commit. 2008-03-29 02:20:41 +00:00
tsutsui 50cafe93bd Use device_private(), missed in the previous. 2008-03-29 02:14:29 +00:00
mjf 1078d801e0 Include lii(4). 2008-03-29 01:24:30 +00:00
mjf 09bf00f6dc Add man page for Atheros L2 Fast-Ethernet device driver. 2008-03-29 01:15:03 +00:00
cube b5ab5ab5d8 Add and enable lii(4) in amd64 configurations, too, as it is very likely
the hw is used on amd64-capable otherboards, although it is not confirmed
yet.
2008-03-29 01:14:25 +00:00
cube f154459e7a Mention the addition of lii(4). 2008-03-29 00:42:22 +00:00
cube 819aee2ff1 Add lii(4) where it makes sense. 2008-03-29 00:40:02 +00:00
cube 88b9a9b2e7 Add and enable lii(4). 2008-03-29 00:21:01 +00:00
cube 8b01a3db30 Add lii. 2008-03-29 00:20:08 +00:00
cube 2bfb1e4fe0 Add a driver for the Atheros/Attansic L2 Fast-Ethernet chip found on a
series of hardware that includes Asus's famous EeePC.

The linux driver was used as documentation.

Many thanks to all the people who helped or at least supported me while I
was fighting that bug that made the EeePC freeze.  At the top of that list,
Matt J. Fleming (mjf@) and David Gwynne (from the OpenBSD fame).
2008-03-29 00:16:26 +00:00
nakayama 5a9b71307f Don't read fplwp content in delay slot for considering the case fplwp was
modifiled.

Reported by Chris Ross on port-sparc64.
2008-03-28 23:22:53 +00:00
apb e6806c2c83 Adapt to changes in m68k/060sp/asm2gas script: pass SED=${TOOL_SED:Q}
instead of TOOL_SED=${TOOL_SED:Q} in the environment.
2008-03-28 22:29:16 +00:00
apb 87f370a116 Synchronise the two asm2gas scripts in sys/arch/m68k/060sp and
sys/arch/m68k/fpsp:

* The fpsp/asm2gas sed script previously hardcoded the fact that
  registers needed a '%' prefix, and the 060sp/asm2gas sed scrip
  previously did not have rules related to inserting '%' before register
  names.  Now, both scripts have the same rules, but the rules are
  parapeterised to use "$P", which is set to '' or '%' as appropriate.

* Some other minor changes to the sed scripts.

The new asm2gas scripts have been verified to produce identical output
to the old asm2gas scripts, for all inputs in 060sp/dist/*.sa and
fpsp/*.sa, except for some differences inside comments.

Thanks to Izumi Tsutsui for suggesting that these scripts should be
synchronised.
2008-03-28 22:27:33 +00:00
ad 58420c122f mutex_vector_exit: add another panicstr check. 2008-03-28 22:19:39 +00:00
ad 6c180fd421 Pull in sys/cpu.h for cpu_intr_p(). 2008-03-28 21:58:43 +00:00
christos 5ae92982aa properly fix the variable stack allocation code. 2008-03-28 21:18:45 +00:00
christos 8f949a45b8 undo previous 2008-03-28 21:18:24 +00:00
christos 6bb1f8cf94 Not the right way to fix this. 2008-03-28 21:17:37 +00:00
plunky 5281276341 Use deviter API to search for child devices.
As all identifying information is stored in the device
properties, this removes the need for child devices to
have a reserved area (struct btdev) in the softc, and
bthub(4) does no longer need to have a softc at all.
2008-03-28 21:17:36 +00:00
ad 03489e636c sleepq_block: use callout_halt, as we have to wait for the callout to
stop (it might be running on another CPU). Otherwise, 'curlwp' could
exit before it completes.
2008-03-28 20:48:36 +00:00
ad e1fe405771 Add a test for callout_halt (and incidentally, fast softints). 2008-03-28 20:44:57 +00:00
ad c3338aabf1 Enable blocking synchronization for callouts as discussed at length on
tech-kern last year. Instead of modifying callout_stop, add a new
routine (callout_halt) which will sleep if the callout is already in
flight. Note that if a callout can take locks, the caller of callout_halt
must not hold any of those locks - otherwise the two could deadlock.
2008-03-28 20:44:38 +00:00
ad 7b5d104e8d Make these compile again. 2008-03-28 20:28:27 +00:00
manu fe6642740b Still from Cyrus Rahman: fix file descriptor leak introduced by previous
commit.
2008-03-28 20:28:14 +00:00
tsutsui 03bb6cc822 Split device_t and softc for MI mk48txx(4) and intersil7170(4) clocks,
and other related misc cosmetics.
2008-03-28 20:26:12 +00:00
tsutsui 048fb884fc Split device_t and softc for MI mc146818 clock,
and other related misc cosmetics.
2008-03-28 19:05:49 +00:00
martin 65c31645cb Now that we have per-cpu-contexts, checking the context on the local cpu
to find out if a pmap is on some mmu does not realy work any more.
2008-03-28 18:22:59 +00:00
tsutsui 820a544d88 Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*(). 2008-03-28 18:19:56 +00:00
he 2d72e9e39b Note the build hack for racoon's privsep.c. 2008-03-28 18:14:23 +00:00
he 25a92e43c5 Because privsep.c uses CMSG_SPACE() to size two local arrays, these
ends up as c99 variable-sized local arrays (CMSG_SPACE() uses a function
as part of calculating its result).  This causes the stack protection
code in the compiler to complain, so build this one with -fno-stack-protector
to avoid the problem.

Gets us back to buildability for this program for a number of our ports.
2008-03-28 18:10:53 +00:00
christos 56fd57d26f detect more errors from printf/malloc. 2008-03-28 18:05:39 +00:00
tsutsui c93c4b87ff Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_normal(9). 2008-03-28 17:51:51 +00:00
drochner fd0ded75ed split device/softc for USB host controllers and the usb (control)
device,
this is hairy stuff, and I've only tested with uhci/ehci at pci,
please test the rest and report problems
2008-03-28 17:14:45 +00:00
drochner 8e182b07db remove FreeBSD/OpenBSD sections, cross-platform support hasn't been
maintained for a while
2008-03-28 17:10:30 +00:00
tsutsui 71fd55d0c3 Enable warning options. 2008-03-28 16:41:37 +00:00
tsutsui 74d089c227 Adjust boot device detection code to make netboot work properly:
- make a bootloader pass bootpath which includes device path on ARC BIOS
  via BTINFO_BOOTPATH
- make a kernel use BTINFO_BOOTPATH in bootinfo to see boot device first,
  then check argv[0] passed from ARC BIOS if there is no valid bootinfo
- check OSLoadPartition variables in the ARCBIOS environment and whole
  argv[] arguments for IP12
- initialize mach_type before it's referred
- bump boot version

Tested on IP32 with various kernel/bootloader combinations.
2008-03-28 16:40:25 +00:00
ad 13c3856c4c Remove dead code from previous. 2008-03-28 16:23:39 +00:00
martin e4eb0bc72d Use the passed cpu info for returning the frequency, not the current
cpu
2008-03-28 15:39:31 +00:00
xtraeme 2f62d4cb29 hpet can be attached to ichlpcib, mention that in SYNOPSIS. 2008-03-28 15:00:29 +00:00
he d7ce7c850c Make racoonctl build again, sockmisc.c needs -DNOUSE_PRIVSEP in order
to not pull in all the rest of the racoon/ipsec code.
2008-03-28 14:37:08 +00:00