Commit Graph

52948 Commits

Author SHA1 Message Date
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