Commit Graph

67452 Commits

Author SHA1 Message Date
christos
59f2aab1ed fix uninitialized variables 2003-10-25 08:26:14 +00:00
christos
649137925e initialize off 2003-10-25 08:13:28 +00:00
tsutsui
62c9f07679 Switch to use MI mk48txx(4) and todr(9) for MK48T02 todclocks on newsmips. 2003-10-25 04:07:28 +00:00
uwe
ffb8ffc1fc Bump _INTR_N from 8 (all of which were used) to 16 so that it's
possible to do experiments with new drivers without hitting this
limit.  Of this delta we already consume two slots on Jornada 680 for
IRQ0 (j6x0pwr) and IRQ3 (j6x0tp).
2003-10-25 03:45:03 +00:00
mycroft
f336bf5b29 Do that replacement in one more place. 2003-10-25 03:18:37 +00:00
mhitch
b83111d3cb Use -Os to shrink bootblock code a little more. Now bootxx_fd builds with
gcc 3.3.2.
2003-10-25 03:14:33 +00:00
kleink
661f76699f POSIX: when attempting to fdatasync(2) a file which is not open for
writing, fail with EBADF.
2003-10-25 01:18:01 +00:00
mycroft
3ebaf267f3 Replace a constant with a symbol. 2003-10-25 01:17:39 +00:00
uwe
6d2654649f Add kernel_text label so that pmap(1) works. 2003-10-25 00:18:43 +00:00
mycroft
f253f37fb0 In wi_newstate(), read the BSSID into a temporary buffer that has guaranteed
alignment.  Fixes a really obscure failure mode on Alpha, and panics on other
machines.
2003-10-24 23:58:22 +00:00
chris
ceb06608ed Don't pass NULL as an integer. 2003-10-24 23:03:50 +00:00
enami
1917e90b2f Update comment after the #endif for recent change. 2003-10-24 21:45:09 +00:00
scw
da08e40e5c gcc3 bitches about a gratuitous use of __CONCAT(), so just delete it. 2003-10-24 21:30:06 +00:00
scw
b9b144d190 Add -ffreestanding 2003-10-24 21:28:24 +00:00
matt
fc0279f650 Make this build properly. 2003-10-24 18:21:52 +00:00
matt
40ef1c4b3a Update to latest i386 version. 2003-10-24 18:20:51 +00:00
matt
aff62bef7a Make this build in a R/O build tree. And add -I. for gcc3 2003-10-24 18:20:01 +00:00
mycroft
4ed6e478a6 + NetGear FA511 2003-10-24 17:04:16 +00:00
mycroft
f4bdf17ebc Fix awk warnings. 2003-10-24 17:01:58 +00:00
yamt
a526db13df sa_unblockyield:
don't assert that syscall arguments are sane.
return an appropriate error instead.
2003-10-24 16:11:21 +00:00
tsutsui
75ebe04013 Add options COMPAT_16. 2003-10-24 15:58:31 +00:00
tsutsui
6c2bb73613 Add support for Acard ATP865/A Ultra100 IDE Controllers. From Tsubai Masanari. 2003-10-24 15:50:02 +00:00
tsutsui
723afbe9db Remove trailing whitespace. 2003-10-24 15:47:49 +00:00
mycroft
5f4b4ea107 Check the PCI device and function numbers correctly. Fixes boot device
identification on reinoud's PWS 550, and works fine on my AS200.
2003-10-24 15:00:20 +00:00
cl
e30be76fce simplify tests:
The case where l_stat == LSONPROC and l_cpu == curcpu cannot happen
because the pagedaemon is the LWP on curcpu and the pagedaemon is a
kernel thread and the code is only used by the pagedaemon.

See also updated patch in PR kern/23095, which I ment to checkin
originally.
2003-10-24 13:07:33 +00:00
is
94b6569a57 wd and atapibus are at atabus now, not directly at wdc.
Change requested by Martin Husemann.
2003-10-24 10:57:16 +00:00
jdolecek
7b569bb154 g/c all SCSI-only device majors - shark doesn't have SCSI and isn't
expandable
pointed out by Matthew Green
2003-10-24 10:29:12 +00:00
ragge
da20a11a23 Fix the bug in the tcp transmit prediction code.
During testing the prediction counters show a hit-rate on about 85% for
packets sent on a local LAN, and better than 99% for intercontinental
high-speed bulk traffic (!).
2003-10-24 10:25:40 +00:00
scw
11b5112b4e The i2c pins are not interrupt sources. 2003-10-24 10:04:01 +00:00
pk
48b10bb77d pmap_map_srmmu: use the `map-pages' Forth word to let prom map all pages
at once.
2003-10-24 09:48:08 +00:00
jdolecek
821f341675 add necessary majors for miscellaneous devices, such as missing
wscons/scsi/isdn devices
2003-10-24 08:18:36 +00:00
jdolecek
e1c55a7ced add major for sci 2003-10-24 08:17:34 +00:00
jdolecek
694c204404 add major for 'ses' for archs which have the other scsi devices 2003-10-24 08:09:53 +00:00
matt
113d5c2523 use -ffreestanding 2003-10-24 06:48:53 +00:00
matt
3600060b1e Don't install bus.h 2003-10-24 05:11:12 +00:00
matt
425743428c Fix some indentation problems. Turn off PSL_EE when calling OFW. 2003-10-24 05:10:02 +00:00
matt
5b1fd73a0a Add back spkr.h 2003-10-24 05:07:44 +00:00
matt
c6f98f7a34 Add _bus_dma_phys_to_bus_mem_generic and _bus_dma_bus_mem_to_phys_generic. 2003-10-24 05:01:09 +00:00
matt
f6dce1d311 Make this work with R/O source trees. 2003-10-24 04:49:31 +00:00
matt
9c38699d01 Remove redunant raid entry. 2003-10-24 04:48:59 +00:00
kent
cc9f31d5b2 auich_reset_codec:
wait for readiness of one of all codecs.
2003-10-24 04:06:44 +00:00
enami
935b3c7ad5 Make this file compile again when TCP_OUTPUT_COUNTERS defined. 2003-10-24 03:12:53 +00:00
yamt
3f32c6ab70 don't use NULL as vaddr_t. 2003-10-24 00:53:43 +00:00
mycroft
a480189bf8 Remove IDE_PCI_CLASS_OVERRIDE -- it wasn't actually used anywhere. In lieu of
it, add a class/subclass check to drivers that do not (appear) to have a unique
ID for the IDE controller.  This includes aceride, cypide and optiide.
2003-10-24 00:24:15 +00:00
mycroft
ef51dc08fc NULL -> 0 2003-10-23 23:52:16 +00:00
kleink
56062be225 Make ieee_ext match reality, and add a note about its ABI-specific
tail padding.
2003-10-23 23:28:29 +00:00
kleink
422697679e * Move the definitions for types other than single-precision and double-
precision back to machine-dependent headers.  C99 has no strict
  requirement which, if any, extended-precision type `long double' must
  match, and even between 80-bit formats there are differences in
  implementation (m68k vs. x86).
* On arm, consider __VFP_FP__.
2003-10-23 23:26:06 +00:00
mycroft
56e88d0d24 NULL -> 0 2003-10-23 23:25:39 +00:00
kleink
7caede41fb Oops, s/DECIMAL_DIGIT/DECIMAL_DIG/. 2003-10-23 23:16:50 +00:00
mycroft
5a8b331f54 Remove all the code to maintain ia_inpcbs. This information was only used to
close sockets on address changes, which was deemed to be a bad idea and was
summarily removed, so there is no point in wasting effort on maintaining it
any more.
2003-10-23 20:55:08 +00:00
scw
2ffebceb85 Duh, fix the align-to-32-bits code. 2003-10-23 20:46:40 +00:00
fvdl
d85a7f8656 Need the NOCRC bit, or my 5704B5 will start acting up. 2003-10-23 20:36:36 +00:00
he
db957f1a5a Correct a few more instances where NULL was used in an integral context. 2003-10-23 20:25:40 +00:00
he
441d9ba0ce bus_addr_t on MIPS is integral, so use 0 instead of NULL. 2003-10-23 19:55:14 +00:00
bouyer
e0f02bb281 If we found a compat channel disabled, unmap the registers. There may be
an ISA IDE adapter at the same address.
2003-10-23 19:29:35 +00:00
cl
89ca05e5e9 Fix NULL change lossage. 2003-10-23 18:56:49 +00:00
fvdl
b9d0173421 Call check_mcontext to validate a register set passed in by ptrace. 2003-10-23 17:45:14 +00:00
fvdl
4df6c69646 * match more cards (from FreeBSD)
* don't set the NOCRC bit in the mode control register, it can cause
  problems on some chips (from the broadcom errata via FreeBSD)
* implement a fallback quirktable that is searched only using the
  major asic revision, so that the driver has a shot at supporting
  newer versions properly without modification
* rename asicrev -> chipid, like the FreeBSD driver
2003-10-23 17:41:59 +00:00
kent
5286b24afb Change the short names of nForce:
nForce-MCP -> nForce
 nForce-MCP-T -> nForce2
 nForce-MCP-T -> nForce3

Use snprintf() and strlcpy() instead of sprintf() and strcpy().
2003-10-23 17:14:54 +00:00
kent
3afd3b3671 - remove unused code
- print diagnostic messages if the primary codec does not get ready in
auich_reset_codec().
2003-10-23 17:05:26 +00:00
thorpej
e8a98ee63e Oops, FAST_MBSEARCH counters were swapped; fix it. Pointed out by yamt@. 2003-10-23 17:02:23 +00:00
kleink
e015c8ea64 Account separately for the explicit integer bit in extended-precision
format, due to its role in denormal representation; inspired by communication
with Charles Hannum.
2003-10-23 16:57:20 +00:00
fvdl
142de57c80 Regen. 2003-10-23 16:02:09 +00:00
fvdl
ef2ab367bd Add a few more broadcom 57xx ids. From FreeBSD. 2003-10-23 15:54:13 +00:00
kleink
c51a4365e2 While I'm here, retire the FPE code's own copy of ieee.h. 2003-10-23 15:07:30 +00:00
he
91d100ed41 The paddr_t type is integral, so no longer compatible with NULL,
so use 0 instead.
2003-10-23 15:06:26 +00:00
kleink
d216ee1de2 Make struct ieee_ext actually match the layout of m68k extended-precision. 2003-10-23 15:04:00 +00:00
scw
1fdc9cd5a1 Add a defflag for __BUS_SPACE_HAS_STREAM_METHODS, and add the
appropriate glue in bus.h, contingent on the option being defined.

This allows stream methods to be available on a port-by-port basis.
2003-10-23 15:03:24 +00:00
mycroft
0965dd2ada Recognize ESS1879. 2003-10-23 14:28:55 +00:00
fvdl
b4c1912d80 * match the nForce3 controller
* search the whole current PCI bus for the VIA bridge, can't rely on
  it to be function 0 of the same device
2003-10-23 14:27:09 +00:00
kleink
8a1a0686ad No need for multiple-inclusion protection in these. 2003-10-23 13:02:52 +00:00
ragge
c4690aa593 Set snd queue size to max(WM_IFQUEUELEN, IFQ_MAXLEN), instead of hard to
WM_IFQUEUELEN.
2003-10-23 12:53:02 +00:00
scw
9552c65898 - Make the compile-time selection of ixdp425 vs. zao425 actually work.
- Flesh out cpu_reboot() to jump to Redboot via cpu_reset().
   (See XXX comment in code regarding a problem with this).
2003-10-23 10:50:01 +00:00
ragge
7058b828e4 Fix NULL change lossage. 2003-10-23 10:05:53 +00:00
scw
41e7743573 Map the expansion bus registers. 2003-10-23 09:32:17 +00:00
scw
0df102009a Add a few more register definitions. 2003-10-23 09:29:36 +00:00
scw
3a414f559e Use pmap_enter() instead of pmap_kenter_pa() as the former automatically
ensures the mapping is cache-inhibited, so we don't have to frob the PTE
directly.
2003-10-23 09:25:44 +00:00
scw
0fd0c83111 A few minor tweaks to the onfault handlers.
Save some instructions in the non-fault return path.
2003-10-23 09:11:35 +00:00
jdolecek
484efd5a29 g/c PARTITIONSHIFT (not used anywhere) and set MAXPARTITIONS directly to 8 2003-10-23 09:02:26 +00:00
jdolecek
d4312c20e8 g/c PARTITIONMASK, it's not used anywhere anymore 2003-10-23 09:01:44 +00:00
scw
52c15bbd20 Don't drop to spl0 in cpu_switch/cpu_switchto. Do it in the idle loop
instead.

With this change, we no longer need to save the current interrupt level
in the switchframe. This is no great loss since both cpu_switch and
cpu_switchto are always called at splsched, so the process' spl is
effectively saved somewhere in the callstack.

This fixes an evbarm problem reported by Allen Briggs:

        lwp gets into sa_switch -> mi_switch with newl != NULL
            when it's the last element on the runqueue, so it
            hits the second bit of:
                if (newl == NULL) {
                        retval = cpu_switch(l, NULL);
                } else {
                        remrunqueue(newl);
                        cpu_switchto(l, newl);
                        retval = 0;
                }

        mi_switch calls remrunqueue() and cpu_switchto()

        cpu_switchto unlocks the sched lock
        cpu_switchto drops CPU priority
        softclock is received
        schedcpu is called from softclock
        schedcpu hits the first if () {} block here:
                if (l->l_priority >= PUSER) {
                        if (l->l_stat == LSRUN &&
                            (l->l_flag & L_INMEM) &&
                            (l->l_priority / PPQ) != (l->l_usrpri / PPQ)) {
                                remrunqueue(l);
                                l->l_priority = l->l_usrpri;
                                setrunqueue(l);
                        } else
                                l->l_priority = l->l_usrpri;
                }

        Since mi_switch has already run remrunqueue, the LWP has been
            removed, but it's not been put back on any queue, so the
            remrunqueue panics.
2003-10-23 08:59:10 +00:00
chs
65d5587ddd rename pv_next to pv_node. use SPLAY_RIGHT() instead of expanding it inline. 2003-10-23 08:30:21 +00:00
dyoung
38a484b2d0 In the input path, do not discard management frames belonging to
a different BSS, because that keeps drivers like atw from detecting
ad hoc beacons with the same SSID but different BSSID for the
purpose of IBSS merges.

This should be revisited: maybe drivers should check for beacons
before handing packets up with ieee80211_input(). However, this
restores the atw(4) to working like it did with the old 802.11
layer, and it *is* nice to re-use the 802.11 layer's packet-decode
& -dispatch code (i.e., the ic_recv_mgmt callback).
2003-10-23 06:30:32 +00:00
kent
27d4af4355 No need to check the codec ready flag in read_codec() and write_codec().
According to the ICH datasheets, the flag is unchanged unless resetting
the codec.

The flag is useless after enabling bus mastering.  This behavior is common
to all ICH chips.  The quirk handling code is removed.
2003-10-23 05:25:29 +00:00
simonb
e93422fa5f Remove "struct aubus_ohci_softc". As well as ohci_softc_t, it only had
a copy of the interrupt cookie which isn't used outside the attach.  We
has also bogusly only told the autoconfiguration machinery that our softc
was as big as a ohci_softc_t, not a struct aubus_ohci_softc.
Also, disestablish the interrupt if OHCI initialisation fails.
2003-10-23 04:58:32 +00:00
briggs
8cfe8cd526 After discussion between mycroft and enami, restore the WDC_PCMCIA_ATTACH
flag and use it to avoid an extra power cycle during the probe process.
2003-10-23 03:56:36 +00:00
provos
6a583bc5cb changed linked list in pmap_remove_pv to a splay tree; approved: fvdl@ 2003-10-23 03:03:20 +00:00
uwe
94a688bcbc In hd64461pcmcia_chip_io_map set *windowp to 0.
This driver ignores i/o window handle, but most 'at pcmcia'
attachments init their sc_io_window to -1 and then check at detach
time if it was changed from the "bad" value.  Keep them happy, so that
they can correctly clean up when card is detached.
2003-10-23 02:34:07 +00:00
simonb
dab526c8ce Remove OpenBSD and old NetBSD cvs id's; this file now looks nothing like
the original version.
2003-10-23 02:32:18 +00:00
simonb
94eda46437 De-__P(), remove double RCS/CVS id. 2003-10-23 02:31:03 +00:00
fvdl
118d6961e7 Add auvia. 2003-10-23 01:14:43 +00:00
briggs
193b74f006 Regenerate for ENE Cardbus product IDs. 2003-10-23 00:47:45 +00:00
briggs
cdb1c2e5bf Add some ENE Cardbus bridges from FreeBSD. 2003-10-23 00:46:56 +00:00
uwe
6a7a7e91e7 Add missing newline at the end of an error message. 2003-10-23 00:22:55 +00:00
briggs
3448998b43 Try to deal better with card removal during the card enabling process. 2003-10-23 00:04:03 +00:00
briggs
7dc8540d52 Avoid a race condition that could allow a removable controller (such as
a compact flash card) to lock the atabus thread if it gets detached during
the probe process.
2003-10-22 23:59:00 +00:00
uwe
49fd54d39a Use adcvar.h. 2003-10-22 23:52:46 +00:00
fvdl
878ae8047e Remove use of NULL as an integer value. 2003-10-22 22:51:36 +00:00
kleink
c9432c8396 C99: provide DECIMAL_DIGIT. 2003-10-22 21:28:08 +00:00
uwe
5846d07065 Don't compare a char to NULL. 2003-10-22 21:13:44 +00:00
uwe
ae7219a39a Don't compare an integer to NULL. 2003-10-22 21:10:15 +00:00
uwe
49bb9c9d40 Don't compare an integer variable to NULL. 2003-10-22 21:09:09 +00:00
kleink
eef6265460 G/c the local declaration of __nanf; handling of this (conditional on
__HAVE_NANF) was moved to <math.h> some time ago.
2003-10-22 21:04:40 +00:00
kleink
b3bc4360e2 C99: provide DECIMAL_DIG. 2003-10-22 20:31:05 +00:00
he
f99f18a0af Fix two more instances of paddr_t vs. NULL (use 0 instead). 2003-10-22 20:26:32 +00:00
he
20af44689e Bring this back to a compileable state; fallout from NULL type change,
so just use 0 before casting to paddr_t.
2003-10-22 20:15:20 +00:00
uwe
129cf6259c Catch up with GENERIC (1.148). 2003-10-22 18:24:53 +00:00
matt
7e1d1cca33 s/SSR/SRR 2003-10-22 17:29:18 +00:00
matt
3f37cf2db7 Rework ddblow so that if PSL_PR == 1, it dispatches directly to the
trap handler and bypasses the ddbtrap code.
2003-10-22 17:27:58 +00:00
augustss
f42962a2c2 Add Dvorak keyboard map. From PR kern/23230, jacereda@tractor.act.uji.es. 2003-10-22 17:24:43 +00:00
jdolecek
958d4a6d68 add kttcp major 2003-10-22 17:12:54 +00:00
jdolecek
51c4eb4597 add majors for mly, dpti, dpt, twe, joy, radio, cir 2003-10-22 17:08:13 +00:00
jdolecek
ee510816af add wsfont major to archs which have the other wscons devices 2003-10-22 16:53:22 +00:00
kleink
5a44ed37d3 C99: provide FLT_EVAL_METHOD. 2003-10-22 16:18:48 +00:00
manu
8beb6e32ae Patch from http://mail-index.netbsd.org/current-users/2003/09/04/0018.html
to fix problems with a sound card
2003-10-22 15:57:33 +00:00
kleink
22c6452bfb _ISO_C99_SOURCE -> _ISOC99_SOURCE 2003-10-22 15:51:18 +00:00
thorpej
0f781c4abb Add support for the SPI EEPROM found on the newer i82541 and i82547
chips.  Add the i82541 and i82547 product IDs to the table, #if 0'd
out, for now (there are still more changes to come for these new chips
to work properly).
2003-10-22 15:50:39 +00:00
briggs
0fd0bfe35a enami noted that my last fix was not correct. Simplify the code some (and
make it more correct) by removing a flag to track wdc attachment.  Disable
the function after wdcattach() is called, and remove a conditional when
enabling the function in wdc_pcmcia_enable().
2003-10-22 15:03:04 +00:00
itohy
8a3fce54f8 Fix in debug code (no functional changes). 2003-10-22 14:18:27 +00:00
kleink
5d1a2f48d2 Use a common <machine/math.h> for amd64 and i386. 2003-10-22 11:54:23 +00:00
fvdl
91371415b1 Match the Promise FastTrak 378. 2003-10-22 11:32:40 +00:00
fvdl
ba07312903 Match the nForce3 AC-97 chip. 2003-10-22 11:32:12 +00:00
fvdl
653fb67506 Regen. 2003-10-22 11:31:18 +00:00
fvdl
5b7cf69d6e Add:
* an id for the Promise FastTrak 378
	* several ids for NVidia nForce3 devices
2003-10-22 11:30:52 +00:00
agc
25cf475b83 Another NULL vs. 0 correction. 2003-10-22 10:04:43 +00:00
agc
0192c15f19 Don't use NULL when 0 is needed. 2003-10-22 09:43:07 +00:00
mjl
e959b27d7f Typo in comment. From OpenBSD. 2003-10-22 09:04:39 +00:00
agc
f3d647fc2c Don't use NULL for integer values. 2003-10-22 09:03:40 +00:00
mjl
088da88a56 Typos in comments. From OpenBSD. 2003-10-22 09:02:49 +00:00
agc
df214f1879 Don't use NULL when an integer is needed. 2003-10-22 08:58:38 +00:00
briggs
1e810e3178 Since we enable the pcmcia function on attach, disable it on the detach. 2003-10-22 07:48:25 +00:00
briggs
40823fb6bb Maintain reference count properly for nested enables/disables. 2003-10-22 07:46:48 +00:00
thorpej
9e4220c00a Oops, a little to aggressive in the previous patch; TCP_TIMER_INIT()
still needs to be in tcp_newtcpcb(), for now.  Pointed out by enami.
2003-10-22 05:55:54 +00:00
augustss
6d60d8ab89 Re-add the quirks that force certain In-System Design adapters to appear
as (non-standard) ATA over BBB adapters.  Without these quirks they are
not regocnized by the umass driver.
2003-10-22 05:38:16 +00:00
briggs
33a79483d0 Fix a panic that occurred when trying to traverse a corrupt msdosfs
filesystem.  With this particular corruption, the code in pcbmap()
would compute an offset into an array that was way out of bounds,
so check the bounds before trying to access and return an error if
the offset would be out of bounds.
2003-10-22 03:51:12 +00:00
thorpej
31923baa46 Rather than zeroing a tcpcb structure and filling in all the fields
individually, create a tcpcb template pre-initialized (and pre-zero'd)
with the static and mostly-static tcpcb parameters.  The template is
now copied into the new tcpcb, which zeros and initializes most of the
tcpcb in one pass.  The template is kept up-to-date as TCP sysctl
variables are changed.

Combined with the previous sb_max change, TCP socket creation is now
25% faster.
2003-10-22 02:45:57 +00:00
fvdl
eee926f0a9 Only declare intr_scan_bus if NIOAPIC > 0. 2003-10-22 01:53:49 +00:00
mycroft
98fb62de25 Add a code that appeared in a PR recently. 2003-10-22 00:35:41 +00:00
christos
55222ec4a6 Regen 2003-10-22 00:18:32 +00:00
christos
c1ce37728d Remove backslash for new gawk 2003-10-22 00:17:39 +00:00
christos
ddccf85c50 support for NE2000_TYPE_AX88790 from
Yong-Jhen Hong yongjhen at alqualonde dot org
2003-10-22 00:12:36 +00:00
fvdl
e74e8c0c71 Correctly walk up the PCI bus tree to find an interrupt match with
a swizzled pin.
2003-10-21 23:25:48 +00:00
fvdl
80cec054e5 If a bus has not been configured by MPBIOS/ACPI, and the attach hook
for it is called, mark it as configured.
2003-10-21 23:22:52 +00:00
thorpej
4011fcfefd Cache the "adjusted" value of sb_max when sb_max is changed, in order
to avoid doing quad math in sbreserve().

Change suggested by Simon Burge, and code inspired by a similar change
in FreeBSD.
2003-10-21 22:55:47 +00:00
thorpej
861856caa0 Add event counters that measure FAST_MBSEARCH. 2003-10-21 21:17:20 +00:00
kleink
7d9835b758 Don't use NULL in integer-type assignments/comparisons. 2003-10-21 20:59:31 +00:00
tsutsui
4ec21ca21e Use proper macro instead of NULL. 2003-10-21 17:07:20 +00:00
tsutsui
680fc37c3b Remove declarations of constab[] and *cn_tab. They are in <dev/cons.h>. 2003-10-21 17:03:52 +00:00
thorpej
3e560e2b48 Add a TODO list item. 2003-10-21 16:52:08 +00:00
thorpej
c50f2ac573 - Move the i82540EM (LOM) along with the other i82540 product IDs.
- Match the i82545GM (1000BASE-T and 1000BASE-X) and i82546GB
  (1000BASE-T and 1000BASE-X) product IDs.
2003-10-21 16:51:17 +00:00
thorpej
a866babe44 If we're on PCI-X, look up the PCI-X capability. Verify that the
max memory read byte count in the command register is <= the max designed
memory read byte count in the status register.  If not, reset it to the
status register's value.  This is necessary because some BIOSes configure
the wrong value, and the wrong value confused some versions of the PCI-X
capable chips.
2003-10-21 16:41:51 +00:00
tsutsui
564931c4a5 - Use scsibus* at scsi?
- Use atabus* at ata?
- Use atapibus* atapi?
- Sort ATA/ATAPI device entries.
- Comment out aceride, piixide, siside, and viaide.
2003-10-21 16:28:20 +00:00
thorpej
fa32a2cf94 - Since we access PCI config space as 32-bit words, redefine the PCI-X
command register bits offset and shifted appropriatly (PCI-X command
  makes up the upper 16 bits of the register that holds the PCI-X cap ID
  and next-cap-pointer).
- Define shift counts for max memory read byte count in the command
  and status registers.
2003-10-21 16:22:48 +00:00
tsutsui
e6a659ad96 The 6th argument to extent_create() is size_t, don't pass NULL in it. 2003-10-21 16:19:04 +00:00
tsutsui
281b9dfec6 vaddr_t is not pointer, so don't compare it against NULL. 2003-10-21 16:17:18 +00:00
tsutsui
62486dcbeb - Use one 'atabus* at ata?' instead of multiple 'atabus* at XXXide? channel ?'
- Comment out piixide. (can it be attached on cobalt?)
2003-10-21 15:09:19 +00:00
tsutsui
bf4d10546f vaddr_t is not pointer, so don't compare it against NULL.
(BTW, should we also fix "NULL" in following printf messages?)
2003-10-21 15:05:56 +00:00
tsutsui
fa49899d30 Add bswap64.c, required by options FFS_EI. 2003-10-21 14:49:00 +00:00
itohy
29baf4fd02 white space police 2003-10-21 13:10:42 +00:00
itohy
173218ef29 Slightly change the base address so GENERIC kernel may boot (but not confirmed). 2003-10-21 12:43:19 +00:00
itohy
87bcaf3acc 1.2: Support disklabel. 2003-10-21 12:40:15 +00:00
itohy
3fd01cc3f8 Add -D__daddr_t=int32_t so that the arguments of IODC are
not promoted to 64bit.

On 32bit PDC machines, IODC *requires* 32bit args and IODC
can handle only 2GB, and need not to use 64bit integer.
2003-10-21 12:35:23 +00:00
itohy
59f09ea752 Fix types of printf() args to match the format strings. 2003-10-21 12:26:27 +00:00
itohy
76595c213b Enable disklabel support. 2003-10-21 12:24:11 +00:00
itohy
d71dd6d1f4 #if 0 unused parts. 2003-10-21 12:22:37 +00:00
itohy
a57f5d5d08 Use ../common/libsa.h for prototype declarations of common functions.
Add tgets prototype (should be in some header file?).
2003-10-21 12:21:05 +00:00
itohy
1bb2ee7654 Add prototypes. 2003-10-21 12:19:24 +00:00
itohy
9833e639a8 Add a prototype.
Silence -Wshadow.
2003-10-21 12:18:02 +00:00
kleink
004922cd70 Don't use NULL in integer-type assignments/comparisons. 2003-10-21 12:08:11 +00:00
petrov
fd995d7327 More NULL vs not pointer. 2003-10-21 09:02:50 +00:00
petrov
2ba6e4bf47 don't assign/compare integer and NULL. 2003-10-21 08:43:32 +00:00
petrov
9aefdf5971 Don't assign/compare integer and NULL. 2003-10-21 08:38:04 +00:00
petrov
688c2d65e3 Don't use NULL for integer. 2003-10-21 08:31:11 +00:00
petrov
e092522bfc Don't use NULL for an int comparsion. 2003-10-21 08:27:20 +00:00
petrov
73c14af7a1 don't use NULL for an int initialization. 2003-10-21 08:26:31 +00:00
petrov
de7eafdbf8 don't initialize an int with NULL. 2003-10-21 08:20:15 +00:00
skrll
601de4df8c Rename dsrtc to ds1687rtc to avoid conflicting with the MI i2c
ds1307 driver.

Hi Jason.
2003-10-21 08:15:39 +00:00
petrov
1176590ac1 don't use NULL for u_long initialization. 2003-10-21 08:12:46 +00:00
skrll
c6935c341a Remove the channel locator in atapibus* at umass? 2003-10-21 08:03:16 +00:00
itojun
a5b0232610 backout previous; pf and crypto are moved to common majors range 2003-10-21 07:46:50 +00:00
itojun
8386af6745 major for pf/crypto 2003-10-21 07:38:22 +00:00
simonb
45cf1137ea Remove break after return. 2003-10-21 06:22:46 +00:00
simonb
7feb1a91fa Remove return after panic(). 2003-10-21 06:22:16 +00:00
thorpej
abc7f80ca5 - Map I/O space on chips that support it. While it is not used for
normal operation, it is required to implement a bug work-around on
  some chips.
- When issuing a reset on the i82544, i82540, i82545, i82546,
  and i82541, use I/O space, if available, to work around a problem
  with the memory write cycle (problem only occurs when issuing
  a reset).
2003-10-21 05:45:11 +00:00
thorpej
f44ddf324f Fix a typo. 2003-10-21 05:07:10 +00:00
thorpej
0143773bbc Add some additional register definitions needed for newer chips:
- Control register shadow
- SPI EEPROM stuff
2003-10-21 04:39:32 +00:00
thorpej
2cadb9ce85 Record characteristics of the bus connection at attach time. 2003-10-21 04:35:01 +00:00
fvdl
8b99487c1e Define NULL as (void *)0, unless C++ is being used. 2003-10-21 03:27:32 +00:00
fvdl
ce7e811d1d And the wise man said: An u_int32_t is not a pointer, my young apprentice,
so thou shalt not compare it to NULL.
2003-10-21 03:24:25 +00:00
fvdl
c9aca9f010 Don't pass NULL as an integer value. 2003-10-21 03:22:25 +00:00
fvdl
7a6172fe2e Fix NULL assignment to an integer field. 2003-10-21 01:54:23 +00:00
fvdl
80d06975ab Fix int vs. NULL comparison. 2003-10-21 01:45:25 +00:00
fvdl
f4fff513a1 Fix NULL vs. int comparison. 2003-10-21 01:44:45 +00:00
fvdl
38bee36b4c Fix some int vs. NULL comparisons. 2003-10-21 01:38:42 +00:00
fvdl
d114e05b9c Don't compare an integer value against 0. 2003-10-21 01:20:12 +00:00
fvdl
5e8b006a17 Add missing field initializer. 2003-10-21 01:12:42 +00:00
yamt
65995a9aa2 don't swap powerhook and shutdownhook. 2003-10-21 01:00:57 +00:00
fvdl
5f1e7fa5f8 Correct NULL abuse. 2003-10-21 00:57:47 +00:00
fvdl
a08babb013 NULL -> 0 for preempt() argument. 2003-10-21 00:49:34 +00:00
fvdl
a7ee73261e Correct argument to preempt(). 2003-10-21 00:46:09 +00:00
fvdl
c6019338cd Correct preempt() calls. 2003-10-21 00:39:03 +00:00
uwe
62c7814709 Add missing NetBSD/hpcsh devices. 2003-10-21 00:33:12 +00:00
fvdl
86c363960e Correct NULL abuse. 2003-10-21 00:25:59 +00:00
fvdl
2a11316bc0 Correct NULL abuse. 2003-10-21 00:22:04 +00:00
thorpej
e2d086d69d - Do better error checking on EEPROM access.
- Let the EEPROM wire-protocol handler perform the loop.
2003-10-20 22:52:19 +00:00
manu
a591d65ec7 One more section type in the Mach-O format. Now /usr/X11R6/bin/quartz-wm links
and run (it aborts because the dock is not launched).
2003-10-20 22:42:40 +00:00
kleink
36a2ba5ccd Need to make sure __sysconf() has C linkage. 2003-10-20 22:16:33 +00:00
thorpej
12c5273afa Move all the code that handles the MicroWire EEPROM protocol into
a separate function.
2003-10-20 16:28:23 +00:00
briggs
1ce6ced119 As suggested by Jason Thorpe, rename m41t to m41trtc. 2003-10-20 16:24:10 +00:00
jdolecek
bf6449bbff add major for wsfont 2003-10-20 16:20:53 +00:00
briggs
795751a888 Add i2c and the m41t00 RTC on the i2c bus. 2003-10-20 15:37:46 +00:00
thorpej
fedb07bc8d Fix a typo in the "failed to acquire eeprom" case. 2003-10-20 15:34:25 +00:00
thorpej
0ebc93fe43 Move the code that reads a series of bits from the EEPROM into a
separate function.
2003-10-20 15:33:48 +00:00
yamt
f3f1661306 set READres EOF flag correctly. 2003-10-20 13:53:47 +00:00
dsl
b203df0726 Include FS_VINUM in FS_MAXTYPES.
Note there are discrepencies between this list, and that of Free/OpenBSD.
2003-10-20 13:41:28 +00:00
wiz
48f28cea9e sa_vp_faultaddr, sa_vp_ofaultaddr, sa_vp_stacks_low, and sa_vp_stacks_high
are vaddr_t (and thus unsigned long).
Initialize them with 0 instead of NULL.
Closes PR 23204 by Dheeraj Reddy.
2003-10-20 07:15:26 +00:00
thorpej
17aaa92402 Make all of the functions in this file static. 2003-10-20 06:00:26 +00:00
thorpej
10926a6056 Factor out the code that sends bits to the EEPROM into a separate function. 2003-10-20 05:56:17 +00:00
simonb
d4b0d4911f Remove some numeric asm labels that aren't used. 2003-10-20 05:52:55 +00:00
simonb
066683efa3 Need Data Relocate in the MSR for the dcbf in pmap_procwr().
From Matt Thomas.
2003-10-20 05:47:52 +00:00
thorpej
f5fc41219d Move the code that handle the EEPROM handshake into separate functions. 2003-10-20 05:40:03 +00:00
matt
421dd6cc28 Reorganize the way powerpc port install machine specific headers.
Use <powerpc/oea/bat.h> exclusively and remove <machine/bat.h> and
<powerpc/bat.h>.  Remove unneeded <machine/cpufunc.h>.  To insure
1:1 correspondence of <powerpc/FOO.h> to <machine/FOO.h> include
"../../powerpc/include/Makefile" in "arch/FOO/include/Makefile".
Incororpate <byte_swap.h> into <bswap.h> and then byte_swap.h
2003-10-20 00:12:09 +00:00
dyoung
ab4a574ce1 Don't take the 802.11 header off of a frame until after we've given
it to the driver's BPF tap.
2003-10-19 22:00:54 +00:00
kleink
bb07f8defb Add COMPAT_16. 2003-10-19 22:00:01 +00:00
he
536bcfc87a Adapt to the new wdcattach() signature. 2003-10-19 19:29:50 +00:00
matt
e43846141a Remove unused header.
Don't install kernel-only headers.
2003-10-19 18:56:39 +00:00
he
d37f50098a Adapt to the new wdcattach() signature. 2003-10-19 18:49:25 +00:00
fvdl
e9ee9a82c7 Don't use err and trapno from a copied in mcontext. 2003-10-19 18:14:42 +00:00
cl
ed9c2d7075 don't uvm_swapout LWPs which are LSONPROC on another cpu.
uvm_swapout_threads will swapout LWPs which are running on another CPU:
- uvm_swapout_threads considers LWPs running on another CPU for swapout
  if their l_swtime is high
- uvm_swapout_threads considers LWPs on the runqueue for swapout if their
  l_swtime is high but these LWPs might be running by the time uvm_swapout
  is called

symptoms of failure: panic in setrunqueue

fixes PR kern/23095
2003-10-19 17:45:35 +00:00
jdolecek
e66b4221b3 add major for ksyms, and add the comment about MD major range 2003-10-19 16:51:04 +00:00
bouyer
0ca33bf011 Better late than never, add the chip-specific PCI ide controllers. 2003-10-19 15:41:23 +00:00
ragge
9cbcd57e32 Add lcspx. 2003-10-19 15:04:08 +00:00
ragge
90f561b5ff Add lcspx console device driver. 2003-10-19 15:03:25 +00:00
ragge
a893520c07 Add console text device driver for the LCSPX framebuffer. Really dump,
cannot change colours, and is really slow; I haven't found how to buffer
writes to the console yet.
2003-10-19 15:02:17 +00:00
ragge
9fb208fc0a Avoid the pvtable when devices are mapped. Fixes panics when unmapping
framebuffers.  Set aside space in kernel map for framebuffer on VS4k.
2003-10-19 14:58:22 +00:00
ragge
836c5d5ec4 Allow mmap() of /dev/mem. 2003-10-19 14:56:28 +00:00
ragge
89d60ed8ea Fetch SCSI controller ID from nvram for VS4k90 also. 2003-10-19 14:54:24 +00:00
he
5e5a2bb96f Make this compile as a tool; we need to pick up the target's
sys/bootblock.h header in that case.
2003-10-19 11:34:27 +00:00
tsutsui
8d36037f37 Utilize bus_dma(9) functions more efficiently.
pcscp(4) is the first device driver I wrote about five years ago,
but I still have to learn about bus_dma(9) implementation...
2003-10-19 10:25:42 +00:00
manu
d77ec799a5 Support Darwin static binaries (I should say: support the only Darwin
static binary: otool). Dynamic binaires have a pointer to the Mach-O
header on the top of the stack, static binaries don't have this, and
having it produced a crash.

One bugfix: the EXEC_MACHO code assumes that entry = NULL means that
the entry point has not been found in the load commands seen so far.
Therefore we need to initialized entry to NULL if we want a static binary
to discover it. (dynamic binaries were forced to iscover it because when
the intepreter load command is found, entry is updated whatever its
value was before).

One hack: Both COMPAT_MACH and COMPAT_DARWIN are willing to run Mach-O
binaries. COMPAT_MACH fails for dynamic binaries because it cannot find
the interpreter in /emul/mach. For static binaires, it will accept them
(and for Darwin static binaries, this will cause a failure). Until we
rite a test for matchinf Darwin static binaries, just swap the order of
COMPAT_MACH and COMPAT_DARWIN in the exec switch so that COMPAT_DARWIN
is tried first (this will have the advantage of speeding up program
startup). EXECSW_PRIO_{FIRST_LAST} does not seem to work...
2003-10-19 07:52:22 +00:00
scw
175f717bf5 Be more careful about validating the user-specified geometry, otherwise
it's too easy to specify a geometry which will cause a divide by zero
elsewhere in the disklabel code.
2003-10-19 07:41:19 +00:00
matt
3dc55c1216 Add IBM Network Station 1000 port. From John Gordon and updated by me. 2003-10-19 03:33:49 +00:00
matt
3642aa4ccc Add PCN_NO_PROM flag. (read the macaddr from the chip assuming the "BIOS"
has properly written it).  From John Gordon.
2003-10-19 03:32:25 +00:00
matt
ba34947f80 Add powerpc-specific isa and isadma machdep code. (Merge common code from
prep and sandpoint and ...)
2003-10-19 03:19:32 +00:00
uwe
437e63c180 __KERNEL_RCSID. 2003-10-19 02:22:56 +00:00
uwe
738a5e234e Config glue for j6x0tp(4). 2003-10-19 02:21:40 +00:00
uwe
e4bd58b011 Driver for Jornada 680 touch screen. 2003-10-19 02:20:25 +00:00
simonb
9833c17169 Remove some unreachable code with the comment "To shut up compiler"
that neither gcc 2.95.3 or 3.3.1 complains about if that bit of code
is missing...
2003-10-19 01:49:03 +00:00
simonb
59fb31d7cc Remove unreachable break after return and goto statements. 2003-10-19 01:44:48 +00:00
itohy
29f0f3babf Change the location of BSD disklabel not to overlap with LIF header.
LABELSECTOR:  0 -> 1
	LABELOFFSET: 64 -> 0

per discussion on NetBSD mailing lists: port-hp700 and tech-kern.
2003-10-18 23:45:30 +00:00