Commit Graph

53128 Commits

Author SHA1 Message Date
dyoung
3f56488c0d Fix more const pci_attach_args fallout. 2011-04-07 04:01:40 +00:00
matt
558221d2a2 Fix bogus idepth on OEA. 2011-04-07 02:05:02 +00:00
matt
1a61b7e897 Get rid of cpu_lwp_setprivate since it's not needed on powerpc. 2011-04-07 02:04:06 +00:00
macallan
713b73c8c5 add mode setting support
If we find a monitor via DDC we switch to its preferred mode if it reports one,
otherwise stick with whatever the firmware set up.
2011-04-07 01:20:31 +00:00
macallan
0c7466a2ae defflag CRMFB_DEBUG 2011-04-07 01:07:31 +00:00
jym
d833e65927 Alright, set xvif(4) syntax once and for all. Tested with ipf(4) under
XEN3_DOM0 amd64.

Fixes PR misc/39376.

See http://mail-index.netbsd.org/port-xen/2011/04/06/msg006603.html
2011-04-06 23:51:55 +00:00
phx
e08320b5eb Enable all known RTC drivers. The correct RTC will automatically be chosen as
an I2C device, depending on the NAS model.
2011-04-06 18:12:15 +00:00
tsutsui
c2d1bbc260 Move intr_init() (which initializes evcnt(9) for interrupts)
from early machdep.c:mach_init() to autoconf.c:cpu_configure().

evcnt_init() isn't called yet when mach_init() is invoked from locore.S
and interrupts won't be enabled before cpu_configure(9).

Problem reported by Erik Bertelsen on port-pmax:
http://mail-index.NetBSD.org/port-pmax/2011/04/06/msg000093.html
2011-04-06 15:31:08 +00:00
tsutsui
3a5aec4b4e Sync with mipsX_subr.S:
>> Rename kernel_tlb_miss to kern_tlb_miss (everything else kern_xxx)
2011-04-06 14:12:36 +00:00
tsutsui
a46a76ec3e Sync with locore_mips1.S:
>> Load pc into ta0 instead of ra and then saving to ta0.
2011-04-06 14:04:32 +00:00
tsutsui
fb48dc859c Fix build error in previous:
>> ../arch/mips/mips/locore.S:632: Error: register value used as expression
2011-04-06 13:30:33 +00:00
matt
8c807efebc minor cleanups. foo -> foo_p. add some whitespace. 2011-04-06 05:53:27 +00:00
matt
50afc312ee A little constification.
Add MIPS 1004K entry.
2011-04-06 05:50:39 +00:00
matt
90086ecf83 Use the new COP0* stuff in cpuregs.h 2011-04-06 05:48:35 +00:00
matt
011b9dfc63 slight reordering. no functional change. 2011-04-06 05:47:54 +00:00
matt
e59e9990e5 Add a tiny bit of whitespace. 2011-04-06 05:43:11 +00:00
matt
ff7f1cb0e1 Fix some comments. 2011-04-06 05:42:45 +00:00
matt
7c88f4863a Fix LKM/MODULAR case. 2011-04-06 05:42:21 +00:00
matt
72dfff31fe Load pc into ta0 instead of ra and then saving to ta0.
misc comments fixes.
2011-04-06 05:39:51 +00:00
matt
1790477f41 Sort LWP fields 2011-04-06 05:38:19 +00:00
matt
0c8ae5bb18 Don't bother saving T8 (MIPS_CURLWP).
Avoid branches when determining delay slot.
2011-04-06 05:37:59 +00:00
matt
0d18afd259 Fix a bug with pmap_remove_all and pmap_deactivate. Should prevent any
pmap_activate from allocating an ASID while doing pmap_remove_all XXX.
2011-04-06 05:35:37 +00:00
matt
4bb672436e Remove dead code.
KNF cleanup.
2011-04-06 05:33:07 +00:00
matt
86cc1c53e6 Change a KASSERT to KASSERTMSG 2011-04-06 05:23:59 +00:00
matt
bd363a3179 Rename kernel_tlb_miss to kern_tlb_miss (everything else kern_xxx)
Don't load k1 in delay slot to MIPS_CURLWP before branching to
kern_gen_exception since that doesn't use the lwp pointer in k1
(since it can the lwp in MIPS_CURLWP instead).  Use nop instead.
Rework tlb_invalid_exception a bit so the result of the tlbp is
done before seeing if the tlb slot was even or odd.  Makes the
routine slightly smaller.
2011-04-06 05:13:36 +00:00
matt
dc2f9d8cf0 Indent delay slots by a space. 2011-04-06 05:07:40 +00:00
dyoung
9aa93a16e8 Fix target 'tags'. 2011-04-06 01:49:23 +00:00
dyoung
4867aaab9f Fix fallout from pci_attach_args constification. 2011-04-06 01:48:43 +00:00
dyoung
b1084717a7 Fix pci_attach_args constification fallout. 2011-04-06 01:44:45 +00:00
dyoung
8080811d3e Fix target 'tags'. 2011-04-06 01:43:13 +00:00
dyoung
67ce16669f Fix fallout of pci_attach_args constification. This should be the last
one for algor.
2011-04-06 01:37:59 +00:00
dyoung
3a4f5f68fa Fix fallout from pci_attach_args constification. 2011-04-06 01:32:06 +00:00
dyoung
4934592d44 Fix target 'tags'. 2011-04-06 01:31:20 +00:00
dyoung
10db401f9d Fix fallout from pci_attach_args constification. 2011-04-06 01:25:18 +00:00
dyoung
92b62812ca Fix target 'tags'. 2011-04-06 01:24:43 +00:00
pgoyette
6f2c337e45 If an ioapic doesn't really exist, don't add it to internal tables.
This is what other xxxBSDs seem to do in similar circumstances.

Addresses my PR kern/43568

OK jruoho@ in private Email
2011-04-05 13:43:33 +00:00
pgoyette
4dbe4d01fa Display a warning message if an attempt is made to process interrupt
routing for a bus that has previously been processed.

From PR kern/43570 - doesn't fix the problem but at least lets you
know it exists.
2011-04-05 13:17:04 +00:00
macallan
4ac5047fdd remove some old debug code 2011-04-04 22:50:36 +00:00
macallan
95c4a4389f crmfb needs edid and friends now 2011-04-04 22:15:13 +00:00
dyoung
ef8087871b Don't need x86_stub.c here, we'll pick it up from files.x86. 2011-04-04 21:35:31 +00:00
dyoung
fd8e7c1dbb As pointed out by Manuel Bouyer and Taylor R Campbell, I forgot to
commit the change to files.x86 that adds x86_stub.c, so do that.
2011-04-04 21:33:49 +00:00
dyoung
d3e53912d2 Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
2011-04-04 20:37:49 +00:00
dyoung
a184f1f486 Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
2011-04-04 20:37:44 +00:00
dyoung
73ac15efaf Make usb_dma a dependency of ahci(4), since it needs usb_allocmem(9). 2011-04-04 20:01:14 +00:00
dyoung
c2decf31b1 Use callout(9) instead of the USB compatibility junk that went away
months ago.
2011-04-04 19:58:56 +00:00
dyoung
a12a2adf18 The PCI pass-through driver is not too useful without PCI drivers, but
add it to this kernel configuration so that at it gets built some of the
time.
2011-04-04 19:57:31 +00:00
dyoung
89b7c74ba3 Pull in the Atheros HAL options so that OPENBLOCKS266_OPT will build. 2011-04-04 19:55:16 +00:00
dyoung
062b6658ec Fix target 'tags'. 2011-04-04 19:44:16 +00:00
dyoung
911a33d453 Add a couple of make(1) include files that provide lists of source
files needed for tags computation in evbppc, evbarm, cats, and other
architectures.
2011-04-04 19:43:34 +00:00
dyoung
8d4a897025 Fix target 'tags'. 2011-04-04 19:41:24 +00:00
phx
58b980c294 Add more known I2C devices:
dlink: strtc
qnap: s390rtc
2011-04-04 18:01:08 +00:00
bouyer
68c8192be2 Add a driver for RDC's vortex86/PMX-1000 SoC PCI/ISA bridge, with support
for the integrated watchdog timer.
2011-04-04 17:09:39 +00:00
phx
0eb0c32106 Make sure a frame is at least 60 bytes, as Realtek does not automatically
expand small frames.
Patch suggested by nisimura@.
2011-04-04 16:41:34 +00:00
bouyer
88db889213 Add rdcide(4), a driver for the IDE controller found in RDC's
vortex86/PMX-1000 system-on-chip.
2011-04-04 14:33:51 +00:00
martin
02360883ef Add gem at sbus (works since quite some time). 2011-04-04 10:25:08 +00:00
jym
8bbd42f10a Now that pkgsrc-2011Q1 has arrived, and before -6 chimes in, change
ifxname for xvif(4) from xvif%d.%d to xvif%d-%d. This is needed
to avoid sysctl(9) EINVAL errors when creating interface nodes.

See http://mail-index.netbsd.org/port-xen/2011/01/11/msg006405.html
2011-04-03 23:21:37 +00:00
dyoung
9c021d330c Fix 'tags' target. 2011-04-03 23:07:19 +00:00
dyoung
7b673ebd9e Clean up excessive #ifdef'age of NMI trap handling for amd64/i386/xen.
Handle NMI in all Xen kernels.
2011-04-03 22:29:25 +00:00
jdc
2025001e38 Return early if we are called from indirect attach (i.e., not the normal
case).
2011-04-03 06:25:11 +00:00
jdc
e549a2a161 Remove ENVSYS_FMONNOTSUPP, so that we can monitor this sensor. 2011-04-03 06:22:02 +00:00
mhitch
a8b3ad35b4 Fix pmax timecounters for mips3-class machines. Apparently no one else
has run a 5000/150 with 5.0 or later - I booted 5.0 a couple of time, but
clamd caused a hard hang.  Now that I've given up trying to run clamd on
my 5000/150, I noticed that time ran too fast while using the
mips3_cp0_counter source.  The cpu_mhz computed in mc_cpuspeed is the
CP0 clock speed, not the doubled CPU clock.  Also add the mips3_cp0_counter
timecounters for the 5000/50 (maxine) and 5000/260 (3maxplus).
2011-04-03 03:19:52 +00:00
martin
292d7c42ed Do not increment a bool var - from Henning Petersen, PR port-vax/44816. 2011-04-02 10:21:58 +00:00
jruoho
f20d392006 Enable acpicpu(4) by default. 2011-04-01 12:11:16 +00:00
skrll
45f37e968c Enable TLS for alpha - a 2nd class^Wtier system in pookaBSD^WNetBSD
alpha_reloc.c diff from joerg on port-alpha.
2011-03-31 15:30:31 +00:00
nisimura
fa8f20f0f2 Build and use "i2c-child-devices" property to choose the correct RTC
chip among various models.
2011-03-31 02:32:35 +00:00
macallan
9b94525a54 add DDC2 support. Not too useful yet. 2011-03-31 00:01:08 +00:00
jym
aef6dbf4fe Add the HYPERVISOR_sysctl() hypercall.
Although the hypercall arguments (like struct sysctl_readconsole) are not
compatible between different XEN_SYSCTL_INTERFACE_VERSIONs (one of the
reasons why the sysctl calls should only be used by xentools directly),
it's still practical to have when one wants to query Xen's dmesg from
ddb(4) in case of a panic.

Note: additional code is needed for readconsole() functionality, but adding
the hypercall should not cause any harm.
2011-03-30 22:57:24 +00:00
jym
2f91f085df (purely cosmetic changes)
- Use free_otherend_details() instead of calling free() on xbusd_otherend.
- rename talk_to_otherend() to watch_otherend(). We register a watch for
changes in the otherend device "state"; we are not really talking to it.
- add missing prototypes.
2011-03-30 22:34:03 +00:00
jym
fc848a1000 Fix a year old bug that was only fixed in jym-xensuspend branch, but
not in HEAD:
- use uvm_km_alloc() instead of kmem_alloc() to enforce alignement when
allocating p2m_frame pages (xentools can only deal with page-aligned
addresses)
- do not use paddr_t for p2m_frame_list_list with PAE, xentools expect
32 bits PFNs even with 64 bits PTE.

Required to make ``xm dump-core'' work as expected.
2011-03-30 21:53:58 +00:00
macallan
e313f620d9 device_t-ify, use aprint_*_dev() where appropriate 2011-03-30 19:16:35 +00:00
jym
61a25d36c6 Do not clobber autoconf messages (and variables, for error reporting)
in xennet(4) handler. Keep if_xname though.

Reported by dyoung@, thanks.
2011-03-30 18:33:05 +00:00
macallan
5bcfbbb873 add a bunch of GBE registers, no functional change (yet) 2011-03-30 18:25:31 +00:00
martin
112d7f90bb Enable TLS on sparc and sparc64 2011-03-30 09:23:26 +00:00
jym
fad92a48f9 printf("xennet: ...") => aprint_error_ifnet() 2011-03-30 00:17:04 +00:00
jym
3b2b362830 Remove spurious spaces. 2011-03-30 00:13:28 +00:00
jym
26f424e994 Typo fix. 2011-03-29 23:51:32 +00:00
tsutsui
0b9b85d98b Use CALLFRAME_SP(sp) instead of CALLFRAME_S0(sp) to save s0.
At least PROM's _getenv() on 3MIN doesn't preserve CALLFRAME_S0(s0)
and prom_findcons() returns bogus console after mips64 merge.

XXX: I wonder if it's safe to use CALLFRAME_S0(sp) (== 0(sp)) on O32/O64..
2011-03-28 14:40:00 +00:00
tsutsui
397c14a1c3 Use REG_L (not REG_S) to restore a register value. 2011-03-28 12:26:59 +00:00
phx
0e41517647 Fixed PHY access.
Support 8169SC/8110SC (as found on QNAP V200 boards).
Make frame receiving work (FRAMELEN <-> FRAMESIZE).
Driver works now, but not the first time after cold start.
2011-03-27 19:09:43 +00:00
martin
22699d7467 On second thought do not use bit 13 as a flag for syscall numbers, userland
typically sets those from a 13bit signed integer immediate field in the
instruction, so would need to jump through hoops (ok, small hoops) to
avoid sign extension.
Use a combination of the existing syscall flags instead.
2011-03-27 18:47:08 +00:00
ahoka
9e1e81e9f1 use nand_init_interface 2011-03-27 13:36:50 +00:00
ahoka
1d3d5c9972 Use nand_init_interface, which is required now. 2011-03-27 13:35:39 +00:00
phx
fe1c21f416 Add QNAP reboot, reset and button handling functions.
Introduced an optional init function per board, which can set LEDs and other
special hardware to an initial state using the satellite processor.
2011-03-26 22:36:34 +00:00
phx
87469af515 Recognize QNAP V200 board, used in the TS-201 and newer TS-101 models. 2011-03-26 22:20:04 +00:00
phx
d8c31ef485 Updated information for D-Link and QNAP. 2011-03-26 22:18:06 +00:00
christos
254ee22cb1 add fp{g,s}etprec 2011-03-26 19:52:20 +00:00
phx
b65ff74068 QNAP support. Detect wm(4) based V1.02 and re(4) based V200 boards.
That should include all TS-101 and TS-201 models.
Add reset-code and LED-illumination code for the QNAP PIC, which listens
on the second UART with 19200 bps.
2011-03-26 17:55:05 +00:00
tsutsui
1c53db4943 Use .set reorder to entrust compiler hazards and BDslots to avoid future botch
since there is no critical instructions in these sources.

Tested on 3MIN.
2011-03-26 15:49:26 +00:00
riz
596c6b86f1 Call __syncicache() when loading a kobj. Now I can load kernel modules
on my macppc with a ppc7400 without crashing.
2011-03-25 19:37:51 +00:00
tsutsui
122f3545c1 Fix typo in comment. 2011-03-24 15:05:55 +00:00
tsutsui
8d0ce703c9 - make X68K_BUS_PERFORMANCE_HACK part default
- use volatile rather than dummy __asm() statements to avoid optimization

Tested on X68030.
2011-03-24 14:58:33 +00:00
jruoho
dce1533c2b Reset APERF and MPERF only after interrupts have been enabled. 2011-03-24 11:52:53 +00:00
jruoho
b66af12b69 Remove the "simple CPU lock" that was unnecessary.
Thanks to rmind@ for clarifications.
2011-03-24 05:10:05 +00:00
martin
712e3a3618 Add a syscall variant passing the return address in %g5 (we need %g7 for
pthread_self and %g2 is an application register, so we can not use those
anymore).
2011-03-23 20:41:30 +00:00
tsutsui
c492c27e87 bus_dma_segment_t should be a structure, not a pointer. 2011-03-23 13:01:04 +00:00
macallan
a88302936a add chipsfb 2011-03-23 04:46:29 +00:00
macallan
3eb44ed2a7 add support for chipsfb at ofbus 2011-03-23 04:06:03 +00:00
kiyohara
afa4f7cc9a Add slhci(4) and some usb devices. 2011-03-22 05:39:31 +00:00
kiyohara
7e2c2b81ff Add dummy bus_dma(9) stuff. 2011-03-22 05:37:37 +00:00
rmind
180866861e cpu_need_resched: make AST if no __HAVE_PREEMPTION. Change has no effect
since MP option is mandatory on x86, but makes code more logical.
2011-03-21 22:25:13 +00:00
matt
73d0699457 Fix a bug in onchip_intr_name_lookup 2011-03-21 19:55:04 +00:00
mrg
4f892d6c12 enable pci@pryo@mainbus and ebus@mainbus attachments.
pryo still isn't fully working, but i'm able to talk to disk and com
properly.  bge, ohci/ehci, aceride and wm (pcie card) interrupts
are not working yet.
2011-03-20 23:31:36 +00:00
mrg
f4a9b0b1e6 re-add most of the pryo-supporting code, and some general clean up:
- handle setting tsb size in the ptsb via IOMMU_TSBSIZE_IN_PTSB (partly from
  openbsd)
- fix IDB_INFO for systems without a STC that fault on accesses to the
  flush register (like pyro)
- move iommu_reset() to the end of iommu_init()
- use IOMMUREG_WRITE() in a few places
- add a missing membar_lookaside() (from openbsd)
- if pmap_extract() on the flush buffer fails, disable flushing (from openbsd)
- flush the pyro-style iommu when IOMMU_FLUSH_CACHE is set (partly from openbsd)
- clear up a bit of debugging code so it spew a little less (sometimes you will
  get kernel lock spinouts due to long scrolling printfs)
- use __func__ in several places
2011-03-20 21:26:36 +00:00
mrg
371219c783 add pci@pryo@mainbus and ebus@mainbus support. 2011-03-20 20:55:46 +00:00
mrg
9117b6a117 remove pyro_xir(). we don't have the MD support for it (yet?).
clean up some debug code.  clean up the DPRINTF() code, and expand
the interrupt mapping debug code to match schizo and psycho.
set IOMMU_TSBSIZE_IN_PTSB, and if oberon, IOMMU_FLUSH_CACHE.
disable the STC explicitly.
2011-03-20 20:48:36 +00:00
mrg
817ca0ac3d add a new is_flags member to strut iommu_state. add two flags:
IOMMU_FLUSH_CACHE     - extra flushes needed for some pyro
IOMMU_TSBSIZE_IN_PTSB - different ptsb assignment for pyro

partly from openbsd.
2011-03-20 20:47:10 +00:00
mrg
a38cbfb289 enable the tomatillo iocache.
garbage collect struct iommureg_schizo and use struct iommureg2.
2011-03-20 20:43:34 +00:00
mrg
bebacd2c9f define 'struct iommureg2', that includes the full set of regs for the
schizo and pyro iommu's.  use these in IOMMUREG().

add back IOMMUREG_READ() and IOMMUREG_WRITE() macros.
2011-03-20 20:42:06 +00:00
mrg
f24c5fa4a4 remove unnecessary iommuvar.h and psycho{reg,var}.h includes. 2011-03-20 20:40:22 +00:00
tsutsui
69d595d91e Shrink more options, file-systems and device. 2011-03-20 17:32:19 +00:00
phx
e821698c19 More networking options. 2011-03-20 17:10:46 +00:00
phx
ddf0053263 The DSM-G600 U-Boot is so restricted that there is no possibility to pass
any bootargs. So we will just do the default multiuser boot from wd0: when
altboot was started together with a Linux initrd image.
2011-03-20 02:07:05 +00:00
phx
fcc4672d90 DLink DSM-G600 IDSEL-14 (USB) needs special handling: Pin A is mapped to
EPIC-IRQ 1, but Pin C must be mapped to IRQ 2.
2011-03-19 19:54:02 +00:00
phx
f96a3d06f6 Add ral(4) and stge(4) for DLink DSM-G600.
Disabled DIAGNOSTIC.
2011-03-19 16:05:35 +00:00
skrll
0f27bfbde0 Whitespace. 2011-03-19 06:48:09 +00:00
ahoka
f9a44d1787 Dont try to read MSR_TEMPERATURE_TARGET on Core Duo Yonah 2011-03-19 06:15:12 +00:00
jruoho
036d412966 Comment out IA32_TEMPERATURE_TARGET temporarily. 2011-03-18 20:56:46 +00:00
cliff
a89d7a0136 fix typo 2011-03-18 20:23:26 +00:00
cliff
df950be7f2 style improvements, input from matt@ 2011-03-18 19:58:21 +00:00
dyoung
95804f750f Simplify tags target to reduce diffs with amd64/Makefile tags target. 2011-03-18 19:48:12 +00:00
dyoung
85f22fe9ae Fix tags target. 2011-03-18 19:46:19 +00:00
jakllsch
9e4c8abd95 Honor bp_timeout even if someone sets X86_BP_FLAGS_NOBOOTCONF. 2011-03-18 18:24:09 +00:00
jakllsch
f7cb5f6ff7 Honor bp_timeout even when X86_BP_FLAGS_NOBOOTCONF is set.
Or, in other words, bring back the 5 second countdown in pxeboot(8).
2011-03-18 18:21:38 +00:00
jakllsch
0f57ab9175 Automatically adjust pxeboot(8) stack based on the end of .bss, like is already
done in biosboot.S for boot(8).
(The heap location will need to be adjusted if pxeboot expands much more.)
2011-03-18 17:46:26 +00:00
jakllsch
dbf4ec1adb Bump symtab space. 2011-03-18 17:19:06 +00:00
tsutsui
81a6c364a8 - include <mips/mips_param.h> after MACHINE is defined
- remove MACHINE_ARCH and MID_MACHINE that are defined in <mips/mips_param.h>
- remove redundant comment
2011-03-18 16:39:58 +00:00
tsutsui
ad0452ba4c - include <mips/mips_param.h> after MACHINE is defined
- remove redundant comment
2011-03-18 16:35:03 +00:00
tsutsui
24157545c8 Include <mips/mips_param.h> after MACHINE is defined. 2011-03-18 16:33:41 +00:00
tsutsui
d9e5144132 - include <mips/mips_param.h> after MACHINE is defined
- remove redundant comment
2011-03-18 16:28:51 +00:00
tsutsui
2e4462e038 Include <mips/mips_param.h> after MACHINE is defined. 2011-03-18 16:23:09 +00:00
tsutsui
98e6fe4141 - include <mips/mips_param.h> after MACHINE is defined
- remove redundant comment
2011-03-18 16:21:30 +00:00
tsutsui
0965b62500 Include <mips/mips_param.h> after MACHINE is defined. 2011-03-18 16:19:13 +00:00
tsutsui
0eb7af1e56 - no need to define MACHINE_ARCH in MD header
- include <mips/mips_param.h> after MACHINE is defined
2011-03-18 16:17:22 +00:00
joerg
93bcfd6d63 Use explicit size with fld. 2011-03-18 15:32:02 +00:00
tsutsui
8411622879 Use vaddr_t for pc instead of uint32_t. 2011-03-18 15:31:38 +00:00
tsutsui
452f95afe0 Make this compile with options DEBUG and MIPS1 only config. 2011-03-18 15:19:43 +00:00
joerg
8eab2cff56 Remove static branch prediction hints. They pessimize code for all CPUs
but Pentium IV. Discussed with ad@ and dsl@
2011-03-18 15:18:16 +00:00
mrg
4d4222abed re-add local ebusvar.h, and use it to share between ebus.c and ebus_mainbus.c 2011-03-18 09:52:54 +00:00
cliff
43977beaad RMIXL_FLASH_BAR_MASK_MAX is __BITS(34,0)
so avoid using extent if that value overflows 'long'
2011-03-18 07:12:29 +00:00
cliff
a683058e4d - add config for gpio, iobus, nand, flash
- config for pcic, pcmcia stubbed for now (drivers TBD)
- ensure space-tab is used to maintain format when commented
2011-03-18 02:14:55 +00:00
cliff
9628d95fdc - add config for gpio
- add config for iobus, nand, flash
2011-03-18 02:13:46 +00:00
cliff
8a8c6da9df cosmetics 2011-03-18 02:01:45 +00:00
cliff
7cb2c00520 - fix typo when clearing pre-existing intrs in attach 2011-03-18 01:21:34 +00:00
cliff
a8135f3979 - add support for Peripherals IO Bus for RMI XL* chips 2011-03-18 01:05:57 +00:00
cliff
420e258418 - add NAND suport for RMI XL* chips 2011-03-18 01:04:46 +00:00
cliff
ea3f01c4f4 - add support for Peripherals IO Bus for RMI XL* chips 2011-03-18 01:04:09 +00:00
cliff
da7d3d24b2 add gpio support for RMI XL* chips 2011-03-18 01:03:10 +00:00
cliff
4b13361d31 - remove obsolete "TBD" comment 2011-03-18 00:59:13 +00:00
cliff
aa20fcdd11 - add to struct rmixl_config storage for IO Peripherals Bus
base address, address mask, and bus space.
2011-03-18 00:58:54 +00:00
cliff
0224687993 - add register & bit defines for GPIO, Peripherals IO Bus, Flash, NAND 2011-03-18 00:58:35 +00:00