Commit Graph

61134 Commits

Author SHA1 Message Date
jmc 216f0f8cde Add some missing splx()'s noted by Krister Walfridsson 2003-01-05 08:11:33 +00:00
jmc da000bb65b Remove arbitrary bufcnt limit in at_output. 2003-01-05 08:03:45 +00:00
jmcneill 3e467b8109 Print something a bit more informative when displaying 'not configured'
messages for objects without a valid HID.
2003-01-05 06:19:05 +00:00
dsainty 97f7cada0b Make the ubt driver functional. This is an experimental, incomplete, but
actually functional driver.  It provides a local HCI interface to the
HCI-over-USB interface on standards-compliant Bluetooth USB devices.

Currently this device can be attached to the bthci driver for direct user-land
access to the device.
2003-01-05 05:20:20 +00:00
dsainty 466f76bf7b Make the bthci driver functional. This is an experimental, incomplete, but
actually functional driver.  It provides user access through a character
device to a Bluetooth HCI capable driver.

The device interface is the same (open/read/write) as the RAW HCI socket
(socket/recv/send) interface provided by the Linux and FreeBSD netgraph
Bluetooth stacks.  This allows a (very small) number of diagnostic programs to
be trivially ported and actually work.
2003-01-05 05:12:38 +00:00
dsainty 6957647e8b Move #define UBT_DEBUG from ubt.c to usb_port.h 2003-01-05 03:48:18 +00:00
fvdl eff9b6d311 Add some code to deal with the MADT. 2003-01-05 01:03:44 +00:00
thorpej 1106d42424 On the IBM 4xx, don't enter DDB on user mode traps. Fixes
port-powerpc/19662.

Some minor cleanup while here.
2003-01-04 23:46:11 +00:00
wiz 617b132aac Spell output with two ts. 2003-01-04 23:43:02 +00:00
tsutsui 0d588a6b61 Add options MIIVERBOSE. 2003-01-04 21:09:31 +00:00
pk 3e2e9af6c9 Grab the kernel lock on interrupts at level IPL_CLOCK and lower. 2003-01-04 19:25:36 +00:00
pk 5e73320f0f Re-arrange the fields in struct cpu_info such that the most heavily used ones
are together, to reduce cache stomping.
2003-01-04 18:54:45 +00:00
thorpej 4f162f46b9 Make this compile without DDB. 2003-01-04 18:14:48 +00:00
thorpej 296dfde575 Remove KERNFS silliness. 2003-01-04 18:14:22 +00:00
thorpej c72ac1fcf2 Don't fail the kernel build if dbsym fails. 2003-01-04 18:13:51 +00:00
tsutsui c1acc622c0 Check chip type first in mbe_g2_detect() to reduce unexpected device access
in mbe_g2_match() when the device does not exist.
2003-01-04 18:10:18 +00:00
thorpej 62a4b10f83 Make this compile without DDB. 2003-01-04 18:04:43 +00:00
mrg a8699889af use "booted_device" when calling setroot(), so that raidframe autoconfigured
root works...  now with a "/boot" partition holding /ofwboot & /netbsd i can
have a raidframe root without hard coding root at in my kernel.
2003-01-04 17:00:27 +00:00
martin d30bd703a5 Cast off_t expression to long long to match format even on 64 bit
plattforms.

Shouldn't we introduce a PRIoff_t macro to create such format strings?
2003-01-04 15:42:35 +00:00
manu f656d621e7 Here we enter the land of IOKit where the shadows lie.
There are two new mach traps:
mach_vm_make_memory_entry, mach_host_get_io_master. Now we need to find
the documentation to understand what they are supposed to do.
2003-01-04 15:15:01 +00:00
manu 4b219b054a I don't know where I saw this 8 bit shift for the inherit argument of
vm_inherit, but it's not usefull (it's even harmful), so remove it.
WindowServer still crashes but later.
2003-01-04 13:17:07 +00:00
pk f6fc3bd5fc new cpu_switch: SMP: even if we pick up the same process after idling, we
must reset its context as the process might have run on another cpu in
between and had its context changed, e.g. by exec(2).
2003-01-04 11:09:18 +00:00
jmcneill 1e3dfcd74c Initial support for ACPI Thermal Zones. For now, we only export the zone
temperature to sysmon; in the near future we should be associating devices
in this thermal zone with this device so we can do active or passive
cooling on a zone-by-zone basis.
2003-01-04 05:36:03 +00:00
jmcneill 4d5c7fa4ba Attempt to attach drivers to devices without a valid HID so long as they're
not of type ACPI_TYPE_DEVICE.
2003-01-04 05:32:15 +00:00
lha 615a1ff234 From freebsd if_vr.c:1.43,1.56 and if_vrreg.h:1.11,1.14
- Windows put the chip in suspended mode, make sure we unsuspend
  it. 1.43, by Takefumi SAYO <stake@po.shiojiri.ne.jp>

- Detect the revision of the Rhine chip we're using, and force reset
  when the chip supports it. 1.65, by silby@freebsd.org
2003-01-03 19:01:09 +00:00
mrg 277fb5e18a remove a now bogus comment from xcall() 2003-01-03 16:27:23 +00:00
mrg 68da24bd3d - remove some dead debug code
- don't cross call the smp_tlb_flush*() routines on SUN4D, just ensure
that there is only one concurrent flush happening.
2003-01-03 16:24:50 +00:00
mrg fb1500c7e1 remove dead extern fpproc/foundfpu declarations. 2003-01-03 16:21:05 +00:00
mrg 5b23b7800a FPU save is handled in xcall() now. 2003-01-03 16:20:21 +00:00
pk 444faacaac xcall(): consult the `cpuset' argument for posting the cross calls. 2003-01-03 15:49:11 +00:00
pk 0a78c9e13a Define a few XCALL? shorthand macros to avoid clutter. 2003-01-03 15:44:55 +00:00
lukem a250e57c96 Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
2003-01-03 15:34:30 +00:00
pk ff451161e2 Finish FPU context switching on SMP systems. 2003-01-03 15:12:02 +00:00
manu 7f468ee029 Bug fixes for the fake pid hack.
WindowServer is now able to talk with mach_init to exchange bootstrap
information.
2003-01-03 14:47:27 +00:00
christos b5e0c9eb5b add LK_CANRECURSE in the locking of /dev/<pid>/fd/<n> and remove the curproc
kludge. Thanks to fvdl.
2003-01-03 13:54:22 +00:00
manu 80d406d8fe FIxed the way rights are recycled: the refcount makes only sense for
send, send once, and dead names, not for port sets and receive rights.
This make vi and telnet able to work again.

Also removed the all process right list and its lock, which got useless. The
all process lock is replaced by a per process lock, located in struct
mach_emuldata.

Also one bug fix: we did not correctly called Mach hooks for struct emuldata
initialization and release for Darwin processes.
2003-01-03 13:40:04 +00:00
martin 6833c24639 Separate the sbus bus_space_tag_t used for access to nell hardware from
the self constructed little endian pcmcia bus_space_tag_t used for the
client drivers.
2003-01-03 13:28:54 +00:00
martin 87a073002c Make the *_stream_* methods always use the *_real accessors.
Define __BUS_SPACE_HAS_STREAM_METHODS.
2003-01-03 13:23:39 +00:00
christos f8517f9ae2 add procfs_fd.c 2003-01-03 13:22:23 +00:00
christos dbe6c38bc2 Implement /proc/<pid>/fd/<n>. This is work in progress. Questionable things:
- Is it ok to convert DTYPE_PIPE to VFIFO and DTYPE_SOCKET to VSOCK?
    - XXX: Avoid locking issue in ls -Rl /proc by avoiding curproc
    - Does I/O to pipes work?
    - XXX: Are there security implications?
2003-01-03 13:21:17 +00:00
mrg 7bd617d237 part one of bus_space(9) fixes to enable bus spaces to override the
bus_space_{read,write}_[1248]() functions, which will allow 16-bit
PCMCIA support to work without additional hacks in MI drivers.
this option is not enabled yet.
2003-01-03 11:57:45 +00:00
rafal 3021da226f Cosmetic fix -- move __HAVE_MIPS_MACHDEP_CACHE_CONFIG to "MIPS specific
options" section.
2003-01-03 10:30:00 +00:00
dsainty 8644ee7fa0 Remove protoype for irframe_frame_available(), it's never implemented 2003-01-03 09:46:41 +00:00
pk 947028ed94 reverse mailbox physical address check: now warn if it's not I/O space. 2003-01-03 09:22:11 +00:00
pk 3f5be1863e srmmu cache flush: use to the CPU context parameter; this is now required. 2003-01-03 09:19:03 +00:00
rafal 0cff9e28dc Checkpoint of O2 work by Chris Sekiya and myself. This is the sgimips bit;
still needs some arch/mips support code before it will fully work.
2003-01-03 09:09:21 +00:00
rafal b983746705 Also remove `options MIPS3_5200' since nothing uses it ATM. 2003-01-03 08:18:20 +00:00
rafal 2d6f1ac150 The Tigon driver is known to have issues on BE systems, so remove it (I got
the card probed & attached, but had to hack the driver source to even get
it that far and it had issues after that which made me punt on it).
2003-01-03 08:14:44 +00:00
junyoung 49f022f378 Fix typo. PR#19619. 2003-01-03 08:05:22 +00:00
rafal f2c485b280 Move console setup after we've determined machine type so the console init
code can guess where to find a console depending on machine type.
2003-01-03 06:26:06 +00:00
rafal fe84d50d7e Mark the CRIME/MACE register twiddling done after autoconfig with an XXX so
it gets cleaned out when the interrupt registration code is capable of doing
the interrupt mask setup itself.
2003-01-03 06:24:18 +00:00
takemura 285679b875 Added new ioctl command, WSMOUSEIO_GETID to tell touch panel identifier
for tpctl(8).
2003-01-03 04:36:26 +00:00
thorpej 42b7b023b2 Bump rev to 1.6L ... new autoconfiguration message printing routines. 2003-01-03 02:47:30 +00:00
thorpej 81c6d35e2b Remove obsolete MACHINE_ARCH -> arm32 2003-01-03 02:40:57 +00:00
thorpej c2e9de7319 Don't define -D${MACHINE} in Makefile.arm. Instead, let platforms
that care define it themselves.  Note that evbarm NO LONGER defines
-D${MACHINE}.
2003-01-03 02:34:48 +00:00
thorpej bc45f5ceeb Split board-specific Makefile fragments into their own files. 2003-01-03 02:16:26 +00:00
thorpej e5afd96a97 Use the common linker script for all evbarm platforms. 2003-01-03 02:02:11 +00:00
thorpej b179f9cf73 Use the generic irq_dispatch.S 2003-01-03 00:55:59 +00:00
thorpej 6620220d46 Use the generic irq_dispatch.S 2003-01-03 00:41:19 +00:00
thorpej 074858daeb Fiddle with current_intr_depth in assembly code again. Because we
have just pushed a frame, we can make some assumptions that the
compiler cannot as easily make, and can thus do it slightly more
efficiently.
2003-01-03 00:38:16 +00:00
thorpej 6c9c7f3b21 Garbage-collect prev_intr_depth; nothing uses it. 2003-01-02 23:54:39 +00:00
thorpej b33e60be39 Clean up evbarm interrupt support a little:
* Define an ARM_INTR_IMPL option, which specifies a header file
  describing the interrupt implementation for the platform.  Use
  this instead of the list of EVBARM_BOARDTYPE checks.
* Make the s3c2xx0 interrupt dispatch code a bit more generic, and move
  it to a generic location so that other platforms can use it.

This eliminates all uses of the EVBARM_BOARDTYPE stuff, so delete it.
2003-01-02 23:37:53 +00:00
briggs 147ab60754 Enable a few more bus_space functions.
If a region is outside the regular obio space in obio_bs_map(), create
mappings for it.
2003-01-02 23:04:08 +00:00
thorpej 9f57359336 Don't need to explicitly include <arm/s3c2xx0/s3c2xx0_intr.h>. 2003-01-02 22:30:04 +00:00
martin 12da8a0066 Call interrupt handlers from a soft interrupt to decouple them from the
(sometimes excessive) SPL assigned by the firmware to the sbus interrupt.
Protect access to hardware by splhigh().
2003-01-02 20:01:57 +00:00
pooka fb4bf2a901 * tweak CRIME and MACE interrupt masks for IP32 and add some verbosity
* recognize ahc scsi as a boot device

once again thanks to Chris Sekiya
2003-01-02 15:08:18 +00:00
manu 2c04ce0604 A better implementation of right carried by messages. We now correctly create
the right in the destination process.

This is a small step backward for functionnality: vi does not work anymore
because our right checks cause some spurious errors, but this will be fixed
later.
2003-01-02 12:46:06 +00:00
tron 050140988d Add commented out entry for acpi(4). 2003-01-02 12:36:51 +00:00
dsainty 388a82e194 Knock off some XXX'd code: Use malloc() instead of a fixed length buffer
on the stack.
2003-01-02 11:00:21 +00:00
mrg c79ff46cb6 don't try to setup MXCC registers on non-primary CPU's on systems without
SMP support.
2003-01-02 09:42:09 +00:00
tron 3e383d4995 Regen from "usbdevs". 2003-01-02 09:20:39 +00:00
tron e2ecbdf4c0 Copy USB product id for HP DeskJet 1220C from FreeBSD-current to fix
build problems in "usb_quirks.c".
2003-01-02 09:20:21 +00:00
dyoung ea6658283d Since the I/O and memory enable bits are written to the PCI CSR by
the PCI bus code, and because wi(4) does not use bus-mastering, we
may entirely skip writing the PCI CSR.
2003-01-02 06:26:49 +00:00
imp 906987bba8 Merge changes from FreeBSD:
o HP 1220C
o Sanyo SCP-4900 (needs UQ_ASSUME_CM_OVER_DATA to work with umodem)
2003-01-02 04:19:00 +00:00
imp ca15bf77d6 Sync to usbdevs 1.286 2003-01-02 04:04:23 +00:00
imp abf9e63902 Add Sanyo SCP-4900 3G phone. 2003-01-02 04:01:46 +00:00
dsainty 439063014c Initialise uhubdebug so that it's patchable in a kernel image 2003-01-02 03:20:09 +00:00
reinoud c065f11230 Oeps... forgot the versions file 2003-01-02 01:05:35 +00:00
mrg 78ccb64bb2 move #include <sys/reboot.h> with the rest of the <sys/...> headers. 2003-01-02 00:12:16 +00:00
chs 822a8f2c0f several bugs:
- move calls to softdep_setup_pagecache() (which can sleep to allocate
   memory) outside the softdep lock.
 - replace the softdep_flush_indir() hack (which tries to find another
   vnode to fsync when we are holding lots of buffer-cache buffers locked
   for long periods of time) with softdep_trackbufs() (which just kicks
   the syncer and sleeps under the same circumstances).  the former method
   had a lock-ordering problem which would occasionally deadlock.
 - relax the assertion in softdep_sync_metadata() which says that we should
   never see D_ALLOCDIRECT deps for VREG vnodes.  it's ok to see those
   attached to indirect blocks.

also, there's no need to splbio() while allocating the buffer headers
to which pagecache dependencies are attached, so remove that.

fixes all the problems in PR 19288.
2003-01-01 23:08:56 +00:00
augustss 6bf498b3c2 A little more debug. 2003-01-01 21:00:42 +00:00
augustss 33c067f13e Make it compile without USERCONF. 2003-01-01 17:06:59 +00:00
augustss 25ffe0e71a Regen. 2003-01-01 16:36:51 +00:00
augustss 16de3525ca Add Vivitar camera. From OpenBSD. 2003-01-01 16:36:20 +00:00
augustss 0ac88e0baf Don't try to use 1284 mode. 2003-01-01 16:32:58 +00:00
augustss f2590fdb81 Reissue the MAXP command on resume. From FreeBSD. 2003-01-01 16:25:59 +00:00
augustss 8789d465b2 Try getting string descriptors in a slightly different way to works around
some problematic devices.  From Alexander Kabaev <kan@FreeBSD.ORG>.
2003-01-01 16:21:50 +00:00
augustss f2a72b5110 Make sure DDB is set up correctly when we have SYMTAB_SPACE. 2003-01-01 16:18:49 +00:00
augustss 256784b520 Set up proper symbol table space. 2003-01-01 16:18:03 +00:00
pk 9dd42c6155 SMP: lock kernel for soft interrupts < IPL_SCHED as well. 2003-01-01 16:17:10 +00:00
augustss a89cd41b68 Add NEED_SYMTAB to run dbsym. 2003-01-01 16:14:36 +00:00
pk 3607bd7dca pmap_alloc_cpu: use flags from boot cpu for now, as the passed cpu_info
structure has not been fully setup yet.
2003-01-01 15:56:11 +00:00
toshii 086cbf5710 Assign NULL to sc_pipe after closing, so that usbd_close_pipe isn't
called twice.  At least in NetBSD, the detach function is called when the
device is removed, even if the attach function has failed.
This is probably the cause of panics reported in kern/19326.
2003-01-01 15:55:48 +00:00
pk 16305a65cb prom mailbox map: look for the property `mailbox-virtual' first. 2003-01-01 15:51:00 +00:00
manu 0d5c4544d1 The first int on the stack is not the page size, it's the address of the
mach-O header. This is a guess based on what we have on Darwin, we need
to check other Mach systems to see if this value is Darwin specific or not.
Also updated copyright and removed useless debug
2003-01-01 15:18:25 +00:00
mrg 79037114d8 this file is really no longer used 2003-01-01 08:41:17 +00:00
mrg 2fff4ee989 fix a comment. 2003-01-01 08:24:48 +00:00
mrg ea304c3f89 make cd18xx_ccr_wait() actually wait for the CCR to settle. 2003-01-01 07:46:20 +00:00
mrg 62a9b2484d this is no longer used. 2003-01-01 07:45:41 +00:00
mrg aa9a4f85dd enable sab & sabtty 2003-01-01 07:45:21 +00:00
mrg d06249b555 KNF. 2003-01-01 06:33:29 +00:00
dyoung b356d306f5 For confidence's sake, enable I/O and memory accesses (which were
previously NOT enabled), but do not enable bus-mastering (which
was previously enabled, but which neither Lucent nor Prism support).
2003-01-01 02:36:54 +00:00
thorpej 98b0e9af47 Use aprint_normal() for cfprint routines. 2003-01-01 02:31:13 +00:00
thorpej 9c1214153c Use aprint_normal() for cfprint routines. 2003-01-01 02:20:47 +00:00
thorpej dca15fc8c2 Use aprint_normal() for cfprint routines. 2003-01-01 02:10:08 +00:00
dyoung 18d05b8362 A Prism firmware participating in an IBSS network will not send a
LINK_STAT notification for every change of BSSID, so the firmware's
BSSID and the driver's BSSID will get out of sync. This has two
bad affects. First, because the 802.11 framework filters received
packets based on BSSID, many packets can be dropped before the
driver adopts the firmware's BSSID.  Second, ifconfig's tells a
misleading BSSID to the operator.

This problem is most apparent in networks where every station does
not hear every other. I reproduce these conditions in an office by
removing/replacing the antennas on my 802.11 cards.

As a solution, in IBSS mode, the driver will ask the firmware for
the BSSID every five seconds. Also, whenever the driver receives
a frame carrying a different BSSID than the driver's BSSID, then
the driver asks the firmware for the BSSID before handing the frame
to ieee80211_input.
2003-01-01 02:06:47 +00:00
thorpej 95fa2e148a Use aprint_normal() for cfprint routines. 2003-01-01 01:57:51 +00:00
thorpej dbb0f0ebed Use aprint_normal() for cfprint routines. 2003-01-01 01:47:30 +00:00
thorpej 72a2c87923 Use aprint_normal() for cfprint routines. 2003-01-01 01:34:45 +00:00
thorpej 1132348b98 Use aprint_normal() for cfprint routines. 2003-01-01 01:24:19 +00:00
thorpej 359ed65495 Use aprint_normal() for cfprint routines. 2003-01-01 00:46:13 +00:00
thorpej 1eab093085 * Use a device node for each DMA channel.
* Use aprint_normal() for cfprint routines.
2003-01-01 00:45:00 +00:00
thorpej 21fbbf679c Define a base for each DMA channel. 2003-01-01 00:44:34 +00:00
thorpej 7ca7bdb37c Use aprint_normal() for cfprint routines. 2003-01-01 00:39:19 +00:00
tron ed7e94b443 Use bus_space_write_2() to write the 16 bit register "EMU_TIMER" which
should fix PR kern/15663. Patch supplied by Yorick Hardy via GNATS.
2003-01-01 00:36:29 +00:00
thorpej 41a403fb33 Use aprint_normal() for cfprint() routines. 2003-01-01 00:35:30 +00:00
thorpej a7f53c4d06 Use aprint_normal() for cfprint routines. 2003-01-01 00:34:05 +00:00
thorpej aec1389b37 Use aprint_normal for cfprint routines. 2003-01-01 00:32:04 +00:00
thorpej 5001cdaf1f Use aprint_normal() for cfprint routines. 2003-01-01 00:25:01 +00:00
thorpej 703e7687a9 Use aprint_normal() in cfprint routines. 2003-01-01 00:16:46 +00:00
thorpej da0fbadf93 Oops, missed a printf that should be an aprint_normal. 2003-01-01 00:12:06 +00:00
thorpej 72a7af27b0 Use aprint_normal() in cfprint routines. 2003-01-01 00:10:15 +00:00
mycroft d73e77b28c Update copyright notice. 2003-01-01 00:00:13 +00:00
thorpej 0d3b1b8a4f Add support for quiet and silent boots to the autoconfiguration
message machinery.

Quiet boots look like this (inspired by BSD/OS):
.
.
Found tlp0 at pci0
.
.
Found wd0 at wdc0
.
.

Silent boots look like this:
.
.
Detecting hardware...<twiddle>done.
.
.

NOTE: This requires cooperation on the part of all device drivers,
changes to which have not yet been checked in.
2002-12-31 23:59:11 +00:00
thorpej f631b51555 Add aprint_error(), which is like aprint_normal(), but also records
the number of times it is called.  This allows subsystems to report
the number of errors that occurred during a quiet/silent subsystem
startup.  aprint_get_error_count() reports this count and resets it
to 0.

Also add printf_nolog(), which is like printf(), but prevents the
output from hitting the system log.
2002-12-31 23:45:36 +00:00
thorpej 89ef67a28c Nothing cares about NSYSMON anymore; delete it. 2002-12-31 22:47:48 +00:00
thorpej 0ad39e91ea Fix sysmon entry. 2002-12-31 22:43:38 +00:00
thorpej 3770328cab Add the following message printing routines, designed for printing
autoconfiguration messages:

aprint_normal: Send to console unless AB_QUIET.  Always goes to the log.
aprint_naive: Send to console only if AB_QUIET.  Never goes to the log.
aprint_verbose: Send to console only if AB_VERBOSE.  Always goes to the log.
aprint_debug: Send to console and log only if AB_DEBUG.

API inspired by the same routines in BSD/OS.

Will be used to address kern/5155.
2002-12-31 17:48:03 +00:00
pk 2aac3c7c89 Slight optimisation in proc_trampoline(). 2002-12-31 17:07:36 +00:00
thorpej 438dc24855 Partially expose some of the kernel printf internals in the new
<sys/kprintf.h> header file.  This allows subsystems that need
printf semantics other than what are provided by the standard
kernel printf routines to implement exactly what they want.
2002-12-31 16:53:26 +00:00
pk 1df04e663f Make the schedintr() code common for all timers. 2002-12-31 16:45:52 +00:00
pk 7b7269ba42 New version of cpu_switch/switchexit, mostly to simplify SMP support. It's
currently conditional on ALT_SWITCH_CODE (defaults to `on' if MULTIPROCESSOR
is defined) until more testing rounds are completed.
2002-12-31 16:17:12 +00:00
pk 3d8def4865 Use a soft interrupt scheme to schedule schedclock(), so we can make
splsched() less than splhigh().
2002-12-31 15:57:26 +00:00
pk 67e16e38a4 Define IPL_SCHED at level 11 and make splsched() use it. 2002-12-31 15:51:18 +00:00
manu f3e11e72e9 Introduce port names, deallocate mach ressources at Darwin process exit 2002-12-31 15:47:37 +00:00
pk d358537b64 Pass the CPU context to all TLB flush routines. Because of this (and the
fact that cache flushes are also passed the context number), most
"long-term" context switches can be eliminated from the SRMMU versions
of the pmap functions.
2002-12-31 15:23:29 +00:00
pk 83dae8a821 * map the PROM CPU mailbox if available.
* map MXCC error/status registers if available.
* add MXCC-specific module error interrupt handler.
* use high priority interrupt level in mp_pause_cpus()
2002-12-31 15:10:28 +00:00
pk 2b59d26892 Add offset for `cpuinfo.ci_tt'. 2002-12-31 15:05:48 +00:00
pk c3bb05ff5b * Add level argument to raise_ipi()
* Add diagnostic field members to cpu_info.
2002-12-31 15:04:49 +00:00
yamt a5bf83bbfc don't set vnode type to VNON in error case of ufs_makeinode.
(backout rev.1.74)

it seems that there's no need to do it (anymore?) and LFS has trouble with it.
(VNON vnodes marked VDIROP will never reclaimed)

ok'ed by Frank van der Linden.
2002-12-31 15:00:18 +00:00
yamt 140a8e56ca write ifile only when it has dirty buffers. 2002-12-31 14:54:32 +00:00
pk 5c671fd10d nmi_sun4m: run handler at splhigh() 2002-12-31 14:34:54 +00:00
pk 43b86d0b59 rwindow debug code: display the current cpu number. 2002-12-31 13:17:23 +00:00
fredette 2068a40cc7 Removed esm_freemem(), which isn't used any more. 2002-12-31 13:10:59 +00:00
manu 6f978415df When the kernel transmits a message to a processs, remote and local port
are swapped. Also added some debug.
2002-12-31 13:09:38 +00:00
pk a1e9e5cae8 Add some more definitions: SRMMU and MXCC reset register. 2002-12-31 12:01:27 +00:00
augustss d202c97c46 Fix some messages and some formatting. 2002-12-31 11:23:34 +00:00
manu 48ad3f41b6 Remove some debug and make it build again wihout DEBUG_MACH 2002-12-31 09:32:03 +00:00
shin 031dbfcca0 add PCI bus access device. 2002-12-31 06:54:13 +00:00
dyoung 053c1688c8 Per discussion in PR 18794, fix PCI resets. Alas, this does not
seem to fix PR 18794.
2002-12-31 06:33:20 +00:00
jmcneill 3893537d91 If we have a valid UID but it's a null string, display '<null>' rather than
nothing at all.
2002-12-31 05:59:53 +00:00
explorer 0c77fcf312 add ENVSYS_INDICATOR and ENVSYS_INTEGER types 2002-12-31 05:27:29 +00:00
explorer 59e0238f99 add envsys support to acpi A/C adapter and batteries. This is still a work
in progress, much like the rest of ACPI.
2002-12-31 05:26:56 +00:00
dsainty 3204b83aa5 Be somewhat more persuasive about enabling the port on a port reset.
USB protocol dictates that the port enable must be implied by the port
reset. To implement this on (at least) the VIA VT83C572 this means we
need to wait around tweaking the chip state until the port actually
transitions to enabled (or the device goes away).  Likely fixes
kern/11018.
2002-12-31 02:21:31 +00:00
dsainty 0bdb52527a CONSTCOND away some lint warnings 2002-12-31 02:04:49 +00:00
augustss 914250b8f3 Another quirk. 2002-12-31 00:50:07 +00:00
augustss 13d6b87d32 Use a somewhat bigger buffer for the vendor string. 2002-12-31 00:39:11 +00:00
augustss 185623c571 Use correct values to compute record high water mark. From kern/19614 by
Ron Roskens.
2002-12-31 00:33:10 +00:00
explorer 4b995bb9a4 fix for my sony laptop, which doesn't quite follow spec 2002-12-30 21:55:05 +00:00
manu 1d1b901b90 bug fix: in debug functions, the port set right and the port set members
wer mixed up
2002-12-30 19:32:15 +00:00
manu d9f2a8dbcd - When mach_init saves the bootstrap port, make it the default bootstrap port
for any program we will launch later. This is a hack to avoid the need
of launching any Darwin binary as a child of mach_init
- More and more debug
2002-12-30 18:44:33 +00:00
veego a64314e402 Fix broken build due too the move of the cd9660 and msdosfs kernel source code. 2002-12-30 16:41:53 +00:00
reinoud 006384eaed In the case there is just one SIMM and one memory bank from the SIMM things
got wrong when no VRAM was there.

Placing the video DRAM in front of the kernel is OK when its 1Mb since the
kernel wants to be on a Mb boundary. Placing the video DRAM in the last
SIMM bank at the front is also OK unless there is just one SIMM and just one
bank; then it got in the way again!

Solution is to put the DRAM at the end of the SIMM instead of the beginning!
This however can result in the non 16 kb alignment of the top of physical
RAM where the temporary L1 page tables are situated. If its not 16 kb aligned
then move the L1 page table address down and down until it is 16 kb aligned.
This memory will be reused later on anyway.

What to do when we really support changing screensizes... see it as a max?
or use a different sceme alltogether? It might not even be a bootloader
problem then allthough its memory is not showing up in the DRAM/VRAM
block counts wich needs to be fixed one day.
2002-12-30 15:54:46 +00:00
explorer a26c9e1804 When a battery isn't present, display that rather than bogus values. 2002-12-30 13:06:43 +00:00
manu f449715c66 When allocating a receive right on a port, don't forget to change
the reciever.
2002-12-30 12:46:19 +00:00
manu 27427542f4 When the right is not a port set, set the port set head to the right
itself. That way when we want to wakeup a receiver, we just have to
wakeup the port set head, it will work either for port set and for non
port sets.
2002-12-30 12:41:52 +00:00
chris eabbfc15c6 Fix build break.. 2002-12-30 10:19:59 +00:00
explorer 6ce13e9a31 clean up printing of battery info. This includes other changes I've toyed with, #if 0'd out 2002-12-30 09:37:50 +00:00
matt db2f223f09 Print out the pnpname that was matched. 2002-12-30 09:33:25 +00:00
matt 839550b347 remove declaration of wss_acpi_config_interrupts since it no longer exists. 2002-12-30 07:29:26 +00:00
jmcneill 165d7516fb Again, in acpibat_get_status, bail rather than continuing if the package
we receive contains less elements than expected.
2002-12-30 06:20:02 +00:00
explorer 89f72704d1 remove redundant defines 2002-12-30 06:16:10 +00:00
yamt cb9613feef comment and assertions 2002-12-30 05:34:17 +00:00
yamt 6fc496c67a move check of lfs_unlockvp from lfs_reserveavail to lfs_reserve
because lfs_reservebuf needs same check as well.
2002-12-30 05:31:53 +00:00
fredette 5620d08cca First cut at recording support for the ESS Maestro-2 and 2e.
16-bit mono recording seems to work OK.  16-bit stereo recording
is missing the left channel for reasons unknown, fixes welcome.
8-bit recording still unsupported.
2002-12-30 05:23:27 +00:00
jmcneill 46e00cd6f7 Oops, I didn't mean for that commented out verbose flag to make it into the
last commit -- uncomment it again.
2002-12-30 04:52:13 +00:00
jmcneill e49259c17a If we receive a battery information package with less than 13 elements,
cleanup and return rather than trying to continue anyway.
2002-12-30 04:47:22 +00:00
explorer f7981239d7 update 2002-12-30 04:03:04 +00:00
explorer 6d15b43548 add atheros communications, Inc. AR5001 reference goop. This is what the 2.4 Ghz / 5 Ghz linksys cardbus card has inside. 2002-12-30 04:02:22 +00:00
reinoud 2f6fe363fa Since we dont support switching screenmodes (yet) we might as well claim
just enough for the screenmemory to be in instead of the maximum of 1Mb.
Small machines like my 8Mb NC get a 700 kb back and thats really noticeable.
2002-12-30 03:30:16 +00:00
dsainty 3d3cc353c3 extern references to debugging globals that really exist elsewhere 2002-12-30 02:44:32 +00:00
reinoud 3e5225eafa If we don't have VRAM then at least account the screensize correctly :) it goes
pretty wierd if it is set wrongly.
2002-12-30 02:19:20 +00:00
reinoud 33ae7765a1 If we nick memory from the DRAM for video then please account it correctly! 2002-12-30 02:05:12 +00:00
jmcneill 9459fbd817 Allow ACPI_EXTRA_DEBUG without ACPI_DEBUG 2002-12-30 01:56:44 +00:00
reinoud f223d87792 Typo and comments 2002-12-29 22:41:08 +00:00
ad d4ed18b479 Block tty interrupts in getc()/putc(). 2002-12-29 20:12:19 +00:00
ad 17fa1f0778 - X pads bitmap rows to a word boundary.
- Handle WSDISPLAYIO_GCURMAX.
2002-12-29 20:01:17 +00:00
ad 91d54c750b In dzkbd_attach(): set dzi_ls for the console keyboard, too. 2002-12-29 19:30:57 +00:00
kristerw e4081b820a It is not valid C++ to have a semicolon after
extern "C" {}
so remove it from __END_DECLS.
2002-12-29 19:21:34 +00:00
thorpej 85c31b11c3 * Move the resched check from setrunnable() and resetpriority() to
a new inline, resched_proc().
* When performing the resched check, check the priority against the
  current priority on the CPU the process last ran on, not always the
  current CPU.
2002-12-29 17:40:26 +00:00
kristerw 9d1bcdf947 Use "__asm" instead of "asm" to pacify lint. 2002-12-29 14:41:29 +00:00
kristerw d320ba3418 Use "__asm __volatile" instead of "asm volatile" to pacify lint. 2002-12-29 14:40:35 +00:00
kristerw 069c964473 Do not try to return a value from void functions. 2002-12-29 14:38:11 +00:00
tsutsui 7bc5ebdb72 Wrap DELAY() macro with do { } while (/*CONSTCOND*/ 0). 2002-12-29 14:09:37 +00:00
yamt a05fbf74c0 fix vref/vunref mismatch. 2002-12-29 14:08:12 +00:00
jdc 50b0738c11 Match the D-Link DWL650H.
Tested on i386 and hpcarm.
2002-12-29 12:11:45 +00:00
jdc 157591d35a Regenerate (DWL650H addition). 2002-12-29 12:06:34 +00:00
jdc d354b364e4 Add D-Link DWL650H wireless card (a different product than the plain DWL650). 2002-12-29 12:04:48 +00:00
yamt 88ae33f9e0 backout assertions in lfs_inactive.
they can be false when unmounting forcibly.
2002-12-29 07:05:55 +00:00
yamt 78d9abec0c sync comment for vflush with reality.
from FreeBSD.
2002-12-29 06:47:57 +00:00
uwe a391e8bea6 Add sh7709 INTEVT2 codes for IRQs, PINTs, IRDA and ADC. 2002-12-29 02:47:07 +00:00
thorpej 63ccfc36f6 Add a comment about affinity to awaken(). 2002-12-29 02:08:39 +00:00
reinoud 24dac6bf26 The unique machine ID is used in some networking stuff to generate a
unique-ish number, so better add it again!
2002-12-29 00:30:40 +00:00
reinoud bf5fbfa164 Update the NetBSD part for the bootloader change. Mostly the changes in
bootconfig.h needs reflection
2002-12-29 00:02:20 +00:00
reinoud 46dbb0f225 Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
2002-12-28 23:57:36 +00:00
thorpej 18e5ffe231 Fix typo. 2002-12-28 23:07:18 +00:00
uwe 0982def9d8 Sync US map with reality. Rename what used to called "us" map to
international.  Drop Hungarian map that is a proper subset of
international map (and I strongly suspect the "Hungarian" is a
misnomer in the first place).  Adjust hpckbd_keymap_table accordingly.

With this change selecting "US" in hpcboot will give you real US
layout.  Selecting "Hungarian" will give you international layout and
I think hpcboot shall be changed accordingly.

I'm not sure if there's separate "German" layout for hpcs.  I think
any layout that is not different from us/international on the primary
layer shall be handled with wsconsctl.
2002-12-28 22:50:09 +00:00
leo d2a5a7fd71 Regen. 2002-12-28 22:13:22 +00:00
leo e946acdd50 Since 1.6 we have 3 images (not 2!):
- 1Mb on HD floppy's
  - 1.44Mb on HD floppy's
  - 1.44Mb on a DD floppy
2002-12-28 22:11:30 +00:00
kristerw 83b5a18c99 Restore the system priority level in case of errors.
OK:ed by martin.
2002-12-28 21:09:14 +00:00
reinoud 779842e0f8 Remove spurious declaration of bootconfig structure since that is already
done in bootconfig.h
2002-12-28 20:40:21 +00:00
sommerfeld 20d271e712 TODO list, paraphrasing Jason Thorpe 2002-12-28 20:12:24 +00:00
kristerw 2ae40935fb The correct way to decorate objects with attributes is to use __attribute__
instead of the synonyms understood by gcc.
2002-12-28 20:11:57 +00:00
christos ae2bf40b7e fix compile problem. 2002-12-28 20:08:36 +00:00
kristerw cfdca0df6b Remove a spurious ;. 2002-12-28 20:06:09 +00:00
christos f69bc61a87 remove redundant declaration 2002-12-28 20:06:07 +00:00
jmcneill fdcb4005e7 Correctly pass the proper DRQ down to the common fdc driver. 2002-12-28 19:53:50 +00:00
jmcneill 18e5fbcc75 Add an fdc at acpi(4) attachment 2002-12-28 19:31:35 +00:00
jmcneill 57713b735f We no longer need to delay the call to wssprobe, so remove the disgusting
config_interrupts hack.
2002-12-28 18:59:52 +00:00
jmcneill 8eb0fffdfc Add an npx at acpi(4) attachment 2002-12-28 17:51:16 +00:00
uwe b83d14425f jornada6x0_us_keytrans: Map "del" key to 211 ("Del") not 14 ("<=").
Our default keymaps map "<=" to KS_Delete (i.e. vt-style rubout)
anyway, so default behavior is not changed, but some people might
prefer to map "<=" and "del" differently.  Let them distinguish
between the two.  Fix the flying windows key mapping it should be 219,
not 221 (menu).  Drop non-existent keycode 125.
2002-12-28 17:49:01 +00:00
matt 13e7cd4f3f Use i386_isa_chipset explicitly. 2002-12-28 17:36:59 +00:00
jmcneill df719d72e4 NACPCA -> NACPI, so isa_dmainit gets called if we have ACPI support too. 2002-12-28 17:31:25 +00:00
yamt d840722863 avoid warnings without DIAGNOSTIC.
pointed by Andreas Wrede.
2002-12-28 17:22:47 +00:00
matt 6b5d7a7b6c Remember the isa_chipset_tag_t and supply to isa_intr_establish.
(thereby removing a XXX in the code).
2002-12-28 17:13:39 +00:00
matt 51ec27c813 Move the call to isa_dmainit to mainbus_attach from pnpbios_attach since
ACPI needs to have that done for the exact same reasons as ACPI.
2002-12-28 17:11:50 +00:00
tsutsui e60823f9f2 Fix typo in comment. 2002-12-28 16:52:02 +00:00
tsutsui 46cc633768 Oops, fix typo in the previous. 2002-12-28 16:44:43 +00:00
pooka bca1052dab on second thought... make this also compile 2002-12-28 16:44:36 +00:00
pooka 00ddd0deec add timer calibration
from Chris Sekiya
2002-12-28 16:40:48 +00:00
tsutsui da446ea2da Change device names in struct pica_dev to match ones used by ARC BIOS.
All of these parameters should be obtained from ARC BIOS, and we will
switch to the way in future. As per discussion with soda.
2002-12-28 16:25:38 +00:00
yamt a428d8a5af dirop inode can't be passed to lfs_inactivate. 2002-12-28 15:12:26 +00:00
yamt 59be5399b7 - in lfs_reserve, vref vnodes that we're locking so that cleaner doesn't
try to reclaim them.
  (workaround for deadlock noted in the comment in lfs_reserveavail)
- in lfs_rename, mark vnodes which are being moved as well as directry vnodes.
2002-12-28 14:39:08 +00:00
jmc 549904564e Implementation of page table support for 64k or greater transfers. This should
also handle uio structs passed in as well. All standard filesystem actions
are working at this stage (can copy, execute, mount, umount, fsck, etc).
2002-12-28 10:54:47 +00:00
jmc ae8cc0726d Move SBP data area's below the 4G mark as some broken devices seem to clip data
address's to 32 bits.
XXX - Need to move the if_fw fifo addr as well but this needs some testing
2002-12-28 10:52:41 +00:00
jmcneill e4db50c7b9 Add IBM0071, until we have access to the Compat Ids. 2002-12-28 10:19:06 +00:00
matt 60040239dc Only remember the softc if was for the keyboard port. Only try to attach
the console to a keyboard port.
2002-12-28 10:14:43 +00:00
matt d00c47eb40 Add IBM3780 (PNP id for IBM's trackpoint). Also consider anything starting
with PNP0F as a mouse.
2002-12-28 09:44:11 +00:00
matt 17fb086421 Add a pckbc acpi attachment (it compiles but it untested). 2002-12-28 08:45:31 +00:00
matt da1df3d58f Make sure we record the type of irq as well as its number. 2002-12-28 08:44:43 +00:00
jmcneill ea66278262 In com_acpi_attach, set sc->sc_iot unconditionally. 2002-12-28 08:14:39 +00:00
jmcneill 3b08a81ed6 Add an lpt attachment to acpi(4) 2002-12-28 08:04:28 +00:00
matt 8ff6f8feb3 Fix an uninitialized variable. 2002-12-28 07:37:51 +00:00
matt 99597db362 make id const, and use it for the strcmp since we went to the trouble
of remembering it.
2002-12-28 07:34:04 +00:00
matt f388356f39 const the pnpid array. 2002-12-28 07:30:33 +00:00
tsutsui 26f0714b7f sparc/tab cosmetics. 2002-12-28 07:11:24 +00:00
jmcneill 33ac82dfff Add 'com at acpi' and 'wss at acpi' glue. These are both working great on
my ThinkPad 600E.

XXX isa_dmainit isn't called early enough for the 'audio at wss' attachment
XXX to work, so I'm deferring the call to 'wssattach' until later on. This
XXX should be fixed soon.
2002-12-28 06:20:15 +00:00
jmcneill c8111254a1 Pass ISA chipset information through to ACPI devices, to allow for porting
of pnpbios(4) glue to acpi(4).
2002-12-28 06:14:07 +00:00
dsainty 47fa5a292f An earlier revision of the data sheet documented MIR data rate support,
576000bps and 1152000bps.  In the current published version of the data
sheet the MIR support documentation is gone, and the MIR mode bit is
documented as reserved.  Possibly the device has a design flaw affecting
the MIR data rates?  Document here that this information came from an
earlier data sheet, but leave MIR support in for the moment.
2002-12-28 06:04:18 +00:00
dsainty 912898cad7 Update reference to online data sheets 2002-12-28 05:35:34 +00:00