Commit Graph

2054 Commits

Author SHA1 Message Date
matt
1f2907ad40 First pass of the new PCI MSI/MSI ABI definitions. (return EOPNOTSUPP for
now).
2011-08-17 18:52:00 +00:00
dyoung
70183e515a Redefine PCI_MSI_* and PCI_PCIE_* constants in terms of bits(3).
Use named constants and more conventional variable names in
pci_msi_establish() and pci_msi_disestablish().  Fix a couple of bugs:
pci_msi_establish() returned a pointer to the struct intrhand instead of
to the struct msi_hdl as it was intended to, and pci_msi_disestablish()
did not free(9) the msi_hdl.
2011-08-17 00:59:47 +00:00
kiyohara
be078a8d7f Set BeBox Mainboard Registers space to BAT register. 2011-08-07 14:47:05 +00:00
cliff
b38eb1f4b4 nuke pq3cfi_addr() and just use ga_addr; obio already sorts out getting
address from chip select reg when cs locator is used.
2011-08-06 05:48:01 +00:00
phx
fbcc784d3a Drop into ddb, when requested by ofwboot (-d option). 2011-08-04 20:02:48 +00:00
matt
56a76c474b Change device name of pq3cfi to cfi.
Add cfi to P2020DS
Add ddrc
2011-08-02 00:27:42 +00:00
matt
b9dc213bc8 Add some more DDR register definitions 2011-08-02 00:23:34 +00:00
matt
f2875a1c9c MPC8544 don't any onchip irqs of 20/21 2011-08-02 00:22:02 +00:00
matt
0ccf0f52df Add simple driver to count single bit ECC errors. 2011-08-02 00:21:00 +00:00
matt
03c42f4d13 Add missing __KERNEL_RCSID 2011-08-01 17:05:16 +00:00
kiyohara
56e955160b s/MULTIPROCESOR/MULTIPROCESSOR/. 2011-07-31 10:00:52 +00:00
macallan
6ba00a6f80 move clearing PSL_IP in ofwmsr back where it was - if we do it too early my
PowerBook 3400c hangs on startup.
2011-07-27 22:04:23 +00:00
matt
70e7e1571a nflash is dead. remove it. 2011-07-25 23:26:03 +00:00
cliff
b9c1425819 add TNF copyright 2011-07-19 20:52:10 +00:00
matt
4a1462f7b0 Fix missed change of BUS_DMA_NOCACHE to BUS_DMA_DONTCACHE. 2011-07-19 19:55:23 +00:00
dyoung
d181d57cd1 Enable new-style <sys/bus.h> on several PowerPC ports supporting PCI
buses.  Make non-inline implementations of bus_space(9) and bus_dma(9)
routines and move them to appropriate .c files.

This may leave amigappc in a bad state, sorry.  Fortunately, it will be
easy to repair by imitating the bus.h -> bus_{defs,funcs}.h split in
some other PowerPC port.
2011-07-17 23:23:53 +00:00
dyoung
6e7a8e528f #include <sys/bus.h> not <machine/bus.h>. 2011-07-17 23:08:56 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
cliff
fb19d2b789 Add support for CFI NOR, using MPC8536DS as initial example.
Only AMD/Fujitsu command set is suported so far.
This is still work in progress, be advised.
2011-07-15 19:19:55 +00:00
mrg
401b5ab713 avoid some uninitialised variable warnings from GCC 4.5. i'm pretty
sure they can't happen in practise, but i can see why GCC isn't sure.
2011-07-02 13:08:25 +00:00
matt
dd6af2c565 Allow the MD code to decide to panic if cpu_uarea_alloc would return NULL.
If NULL is returned, just allocate the standard way.
2011-07-02 01:26:29 +00:00
matt
e89d4071e0 Default to normal uvm_uarea_alloc if we can't allocate one ourselves. 2011-07-02 00:38:29 +00:00
matt
e32cd84753 Select pmap style before calling oea_init. 2011-07-02 00:22:06 +00:00
matt
d75955b9bb Change assert to panic. 2011-07-01 23:47:09 +00:00
dyoung
9aff02ebc1 #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 20:57:45 +00:00
dyoung
cf10107d5d #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 18:51:52 +00:00
dyoung
4ada7c5071 Add new files involved in the bus.h->bus_defs.h/bus_funcs.h split. 2011-07-01 17:28:55 +00:00
dyoung
59adf08e17 Per discussion at
<http://mail-index.netbsd.org/tech-kern/2010/04/02/msg007941.html>,
divide each machine's bus.h into bus_defs.h (constants & data types)
and bus_funcs.h (macro implementations of bus_space(9) routines and MD
prototypes).

Note that some bus_space(9) routines' implementation will move to .c
files from inline subroutines or macros in .h files.

I've only made the split for machine architectures where there is PCI.
All of the non-PCI-having architectures will require a similar split.

These #include files are not referenced by any (committed) Makefiles or
header files, yet.  Changes to Makefiles, to <sys/bus.h>, and to some
more machine-dependent files will dribble in before I throw the switch.
2011-07-01 17:09:58 +00:00
mrg
1566d50022 add GCC 4.5 support 2011-07-01 01:26:38 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
matt
51bd91e1f7 Get rid of local TOOL_GZIP definition that now bsd.own.mk does it for us. 2011-06-30 18:17:11 +00:00
matt
b4c4a0ac2c Add prototypes for lbc_* routines. 2011-06-30 04:45:38 +00:00
matt
c2d496ba0e Add LSOR register 2011-06-30 04:45:04 +00:00
matt
125ea6a8c7 Unfinished (by far) NAND driver. 2011-06-30 04:44:26 +00:00
matt
7adff87bf3 Fix RCSID 2011-06-30 04:43:47 +00:00
matt
4a40b01453 Modify mapiodev to take a third argument indicating whether the space
should be prefetchable (true) or not (false).
2011-06-30 00:52:55 +00:00
matt
198d4bce95 Don't use TLB1 entries for device access if they are writethrough or not
cache-inhibited.
2011-06-29 23:15:55 +00:00
dholland
532c83a47a Add missing $NetBSD$ and/or __KERNEL_RCSID. 2011-06-29 21:53:10 +00:00
matt
4d00b9f7cd Use a private bus_space for freescale eSDHC controller (only allows
32 bit access).
2011-06-29 06:12:10 +00:00
matt
606d897e33 More MP support. 2011-06-29 06:06:04 +00:00
matt
9d61554964 Add an empty pmap_md_tlb_info_init. 2011-06-29 06:05:38 +00:00
matt
784a09c5b5 Add cpu_hatch and cpu_boot_secondary_cpus. 2011-06-29 06:03:52 +00:00
matt
02c5e60b97 Add VERBOSE_INITPPC flag 2011-06-29 06:02:43 +00:00
matt
599d43de9d Add some e500 MP prototypes. 2011-06-29 06:01:33 +00:00
matt
9dcc0b6f65 Declare cpu_hatch_data 2011-06-29 06:00:56 +00:00
matt
1543ad8fcb Cleanup hatch names.
Add cpuset_info.
2011-06-29 06:00:17 +00:00
matt
e2c043f70d Add cpu_send_ipi stub 2011-06-29 05:57:30 +00:00
matt
c35009adce Only attach tc on primary cpu. 2011-06-29 05:56:31 +00:00
matt
d1a2071ebc Panic when an ipi is sent to unknown cpu. 2011-06-29 05:55:47 +00:00
kiyohara
62dc9214de Must need srr0 and srr1 in FRAME_SETUP and trapexit.
parentheses is good.
Remove no-need 'addi FRAME_TF'.
2011-06-28 11:42:51 +00:00