Commit Graph

116823 Commits

Author SHA1 Message Date
fvdl 8ea680bb14 Add -m elf_i386 (for amd64) to LD. 2003-08-30 15:24:41 +00:00
fvdl e8b1f4f135 Add -m elf_i386 to ${LD}, not ${LDFLAGS}, since bsd.lib.mk doesn't
include ${LDFLAGS} when using ld -x on an object file.

XXX what's the point of these ld -x rules anyway?
2003-08-30 15:15:01 +00:00
dsl a8f1b6c6be Move definition of PART_USR to md.h where it has a chance of having some effect. 2003-08-30 13:53:28 +00:00
dsl 677dd78600 Placate people who insist on using non-standard disk layouts by adding
a valid MBR entry for partition 3 (covering the first 15 sectors) into the
end of the partition boot code.
2003-08-30 13:33:55 +00:00
dsl 99135be3ff Use correct size when copying interrupt counters.
Fixes second part of bin/10095 (first part fixed in rev 1.25)
2003-08-30 12:57:03 +00:00
wiz 006b3d98e0 Sort options in usage (AaBb...). 2003-08-30 12:48:11 +00:00
wiz dc6113b226 Sort options (AaBb...); drop trailing space; use Nx instead of verbose
NetBSD; add commas.
2003-08-30 12:48:01 +00:00
dsl df54a17886 Bring description of vmstat page closer to reality. 2003-08-30 12:27:26 +00:00
dsl 818622e67a Change the way pseudo tty devices are generated in order to avoid
any pipes and running other commands (eg dd).
Measurable speeds up creating pseudo ttys.
(there has to be a better way than editing 51 files! - tedious at only
6 key presses per file)
2003-08-30 11:00:20 +00:00
dsl e59ecd76c4 Include a (very raw) dump of the inodes.
Add options to determine what is dumped (default to old behaviour).
2003-08-30 10:30:52 +00:00
wiz d6391bee35 Add KVA, PDP, PTE, and PTP. 2003-08-30 10:17:45 +00:00
ragge b20fe4bd92 Do not cast a pointer to a pointer with different basic type when given
as function argument. It makes assumptions about pointer internals
that do not necessarily have to be true.
2003-08-30 07:54:32 +00:00
nakayama 68369c646a Wrap diag message with #ifdef DIAGNOSTIC. 2003-08-30 04:07:56 +00:00
taca b062332996 ISC DHCP 3.0.1rc12 released. 2003-08-30 01:23:43 +00:00
manu ebd83433da If a Darwin process using the framebuffer (e.g.: XDarwin) crashes without
restoring text mode, do the job ourselves. This avoids letting the
user on an unusable console
2003-08-29 23:11:40 +00:00
manu 553c82ed11 Switch the console to graphic mode before trying to udv_attach the
framebuffer.
2003-08-29 22:03:13 +00:00
ragge 639a0627b0 Note qt driver addition. 2003-08-29 21:23:26 +00:00
dsl 22588a3d36 The __strong_alias() seems to have to be in the file with the definition.
So make bcmp.c define bcmp and memcmp.
This should (?) fix the atari build.
(I've now no idea why the previous change defined memcpy for the alpha build.)
2003-08-29 19:53:18 +00:00
dsl b98ddfffb3 libsa/bcmp.c now defines both bcmp and memcmp 2003-08-29 19:50:26 +00:00
dsl 1ce757782d Define and use PRIdaddr for printing disk block numbers.
Should fix bin/22638 for compilation on amd64.
2003-08-29 16:31:30 +00:00
ragge a936bbd778 bus-ify. Make bpf work, but no promiscuous mode yet. 2003-08-29 14:39:28 +00:00
bsh 43f6db1ea7 support CS8900A ethernet on SMDK2410.
XXX: SMDK2410 has no EEPROM connected to CS8900A. Currently the only
     way to set MAC address is give it via kernel config option.
2003-08-29 13:54:03 +00:00
ragge 23faa91baa Understand qt as root device. 2003-08-29 13:52:45 +00:00
ragge c55ba2df08 Add the qt driver to GENERIC. 2003-08-29 13:51:47 +00:00
ragge b61c0451e0 The qt driver must be probed first, so that the qe driver is skipped
if it is a qt card.
2003-08-29 13:50:45 +00:00
ragge cd72141286 Make the qt driver work under NetBSD. Still to do:
- bus-ify.
- bpf support.
- multicast support.
2003-08-29 13:49:39 +00:00
bsh b0c5091bcb tweak memory controller on startup for CS8900A at CS3 and CL-PD7610 at
CS2.
2003-08-29 13:46:38 +00:00
enami 02a34f5f66 Use VM_DEFAULT_ADDRESS as a hint to map sigcode instead of an equivalent
value of !TOPDOWN_VM case.
2003-08-29 13:29:32 +00:00
dsl 154703d1f9 Use memset (instead of bzero) to clear bss.
bootxx_lfs now fits in the available space.
2003-08-29 12:58:39 +00:00
bsh de45322924 support EXTINT[4:23] as interrupt sources. They are cascaded to
IRQ4 (EXTINT[4:7]) and 5 (EXTINT[8:23]). ssextio driver handles these interrupts.
2003-08-29 12:57:50 +00:00
dsl 99ace74e7b Create linker map file so it is possible to see which library members
are included and why.
2003-08-29 12:56:59 +00:00
bsh 2a0faa1f10 change CPU clock to 200MHz at kernel startup. 2003-08-29 12:42:13 +00:00
bsh e979aaa6ea add option SMDK2XX0_CLOCK_CONFIG to change CPU clock at kernel startup. 2003-08-29 12:41:12 +00:00
bsh 23b593ca51 + set vendor name as Samsung.
+ delete debug printf() and use aprint_normal()
2003-08-29 12:38:48 +00:00
nakayama fd41cea78c Use proper bus number from pci_attach_args instead of (unused) var. 2003-08-29 12:36:44 +00:00
bsh 1f218a14c4 fix a comment. 2003-08-29 12:07:33 +00:00
martin a79495d23b Default sparc64 to XFree 4. 2003-08-29 10:51:21 +00:00
pk 721f0d1591 Fix DEBUG code in me_alloc(). 2003-08-29 08:26:21 +00:00
thorpej a228727423 Apply the following change from 06/28/2003 04:46:54 by gibbs to the
FreeBSD ahd driver:

Fix a race condition in the flushing of commands that
have completed across the bus but not to the host before
processing of an exception condition (busfree, bus reset,
etc.).  When flushing the controller of completed commands,
we also look for packetized commands that have completed
with good status and are stored in the "good status fifo".
The hardware will post to the good status fifo even if
data for that command is still active in a FIFO.  In
one particular failure case, a command outstanding on the
bus reconnected, transferred data into a FIFO, and provided
good status while the host driver was processing an expected
busfree event (PPR message negotiation).  This resulted in
an entry in the good status fifo that we completed, but
since the sequencer was paused, the data in the data FIFO
for this command had never been transferred to the host.
Once the busfree processing was complete, the sequencer
was unpaused, and the data completed its transfer to the
host.  In some instances, the client for the data was notified
of the completion and attempted to view the data before
it arrived.  This case only occurred during FreeBSD's
multi-target probe of the SCSI bus while some devices are
negotiating to go packetized and some devices are already
running in packetized.

The fix is to run and FIFOs active with a context in the
good status fifo to completion before completing the command
to the SCSI layer.  This requies duplicating the FIFO rundown
operations in the host driver that would usually be handled
by the firmware, but there is no other alternative.

Don't blindly shutdown the SCB dma engine when restarting
the sequencer.  We may be killing an operation that is
not supposed to be cancelled.  The cases where we need to
shutdown these dma engines are already handled elsewhere in
the driver.

Fix a few more ahd_in?() -> ahd_in?_scbram() instances.
2003-08-29 05:50:42 +00:00
thorpej efefe51428 Apply the following change from 06/28/2003 04:43:19 by gibbs to the
FreeBSD ahd driver:

Implement ahd_inq_scbram() and change the implemention
of ahd_inl_scbram to use ahd_inw_scbram instead of
ahd_inb_scbram().
2003-08-29 05:48:39 +00:00
thorpej 478ae1fc6e Apply the following change from 06/28/2003 04:45:25 by gibbs to the
FreeBSD ahd driver:

aic79xx.h:
	Add softc flag to indicate that we have seen at
	least one selection since the last bus reset or
	SE/LVD bus change.

aic79xx.c:
	Fix a few style nits.

	In ahd_update_pending_scbs(), only touch card registers
	once we have found an SCB that needs to be updated.
	This removes lots of clutter from PCI traces taken of
	error recovery performed by the driver.

	Short circuit the first selection iocell workaround handler
	if we've run once since the last bus reset or iocell change.
	This also removes clutter from PCI traces.

	Note if completions are pending in the qoutfifo when we dump
	card state.
2003-08-29 04:50:00 +00:00
thorpej 56ebfcc6d5 Apply the following change from 06/28/2003 04:42:11 by gibbs to the
FreeBSD ahd driver:

Correct a typo in a comment.

Add a comment in ahd_clear_critical_sections() about
our need to leave ENBUSFREE set in SIMODE1 while single
stepping.

Re-arrange some delay loops so that we always perform
a read after any register write and before the delay.
This should make the delay loop more accurate.

When completing message processing for a packetized
commention, return the controller to a state where
invalid non-packetized phases will still cause protocol
violations.  These are the same operations as those
performed in the clear_target_state routine in the
firmware.

Now that we have a chip with working ABORTPENDING
support (the 7901B), comment out the automatic use
of this feature until we can adequately test it.
The previous checkin updated the bug mask for the
7901B so this code was exercised.

When resetting the bus, perform an ahd_flush_device_writes()
call so that our reset assertion delay is acurately
timed from when the reset bit is written to the controller.
2003-08-29 04:38:07 +00:00
thorpej 7dbbf20851 Apply the following change from 06/28/2003 04:39:49 by gibbs to the
FreeBSD ahd driver:

aic79xx.h:
        Add a 7901A specific feature definition.

aic79xx_pci.c:
        Split out the general aic790X setup into it's own
        setup handler that works on single and dual controllers.
        Adjust all other PCI setup handlers to initialize the
        chips basic features and type before calling the generic
        handler.

        Turn off a few Rev B workarounds that are not required
        on the 7901B.
2003-08-29 04:17:39 +00:00
thorpej 3c41dc5921 Apply the following change from 07-23-2003 22:06:34 by gibbs to the
FreeBSD ahd driver:

Add parenthesis so that we get all of the bits all
of the contents of the CCSCBCTL register into our
local varaible.  The other bits are used in later tests.
This avoids a potential deadlock in ahd_run_qoutfifo()
if we happen to catch the DMA engine in just the right
state.
2003-08-29 04:03:09 +00:00
thorpej c658309f7e Apply the following change from 07/06/2003 23:53:39 by gibbs to the
FreeBSD ahd driver:

When single stepping, only leave ENBUSFREE enabled
if it was already enabled.  We don't want to set it
when it shouldn't be set, we just don't want to
inadvertantly turn it off.  This should fix a recent
report of the aic7xxx driver repeatedly complaining of
"unexpected busfree while idle" in one configuration.
2003-08-29 04:00:35 +00:00
tls be39aeba77 Fix .include to reflect move of this Makefile. 2003-08-29 03:54:46 +00:00
thorpej ecffeb2eeb Apply the following change from 06/28/2003 04:44:10 by gibbs to the
FreeBSD ahd driver:

Use clr instead of an explicit mov from ALLZEROS
to clear SCB_FIFO_USE_COUNT.  This is just a
syntactic change.
2003-08-29 03:54:06 +00:00
thorpej e5d09ce27d Apply the following change from 06/28/2003 04:40:46 made by gibbs to the
FreeBSD ahd driver:

aic79xx.seq:
        Remove an old comment that no longer applies.

        Fix a jump in our unexpected non-packetized phase
        handler to use an explicit lable.  The old code
        had a hardcoded jump offset that was off by one
        instruction.
2003-08-29 03:51:50 +00:00
thorpej 93cbf1d88e Sync perforce IDs. (From FreeBSD) 2003-08-29 03:45:59 +00:00
thorpej 720b377380 Apply the following change made 06/06/2003 23:51:13 by gibbs to the
FreeBSD ahd driver:

Work around SCSI spec violation by the Quantum Atlas 10K.
This drive delays going async after receiving a WDTR
message.  We now send an SDTR message after a WDTR even
if our goal is to go async.  This should work even for
confused devices.

If we get an unexpected busfree when attempting a WDTR
or SDTR, only set the goal negotiation parameters we were
trying to negotiate to off.  This means that should a WDTR
message fail, we will still try an SDTR if our goal is
non-async.

Fix a few more places where we were looking at goal.period
instead of goal.offset for determining if we should be
negotiating sync.  This should not have any impact on
our behavior, but the offset is more definitive and should
be used.
2003-08-29 03:41:28 +00:00