manu
fe7a5ddf22
Fix PowerPC ports build with KGDB.
2003-12-30 11:23:20 +00:00
thorpej
2f2ca9e66b
Split the Intel i31244 SATA controller ("Artisea") driver out of piixide
...
into its own driver (artsata).
2003-12-14 01:32:01 +00:00
thorpej
9e321b3a18
Collapse the atabus declaration into "atabus* at ata? channel ?".
2003-12-13 23:24:47 +00:00
thorpej
98f7d12017
Split out the Silicon Image SATALink support into its own driver,
...
"satalink".
2003-12-13 23:13:40 +00:00
jmc
695a2a2f9f
Change reference at bottom from sys/dev/majors to sys/conf/majors to match
...
reality
2003-12-10 02:04:00 +00:00
scw
1ba37196a9
Include arch/powerpc/ibm4xx/intr.c only if a particular board actually
...
uses the generic 4xx interrupt implementation.
There are some 4xx boards with entirely different interrupt controllers.
2003-11-19 14:27:24 +00:00
scw
c16a38a4d1
Add support for an MBR disklabel if EVBPPC_HAS_MBR is defined.
2003-11-19 13:58:11 +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
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
lukem
7d84b90c92
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
...
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
2003-10-18 08:30:12 +00:00
jdolecek
ef5bb330f5
reassing majors for crypto and pf to use the newly defined MI major
...
range
2003-10-10 22:42:39 +00:00
jdolecek
4e915c9ccd
update the comment - the space for machine-dependant majors
...
is reduced to 0-143
follows discussion on tech-kern
2003-10-10 21:21:25 +00:00
simonb
96cde2b8b5
White space nit.
2003-10-10 07:04:14 +00:00
simonb
83f1167a97
Need to rename dsrtc to ds1743rtc here too.
2003-10-10 07:01:50 +00:00
bouyer
f5a6a0a843
Add new per-chip pciide drivers.
2003-10-08 11:55:43 +00:00
bouyer
e9255b5ae1
Add atabus.
2003-10-08 11:08:07 +00:00
shige
244b994892
Use xrtc driver on generic I2C framework instead of original xrtc
...
driver at src/sys/arch/evbppc/obs405/dev/x1226.c.
Remove todclock service.
2003-10-06 18:20:54 +00:00
scw
bd61b1e9b3
Rename dsrtc to avoid clashing with the MI i2c ds1307 driver.
2003-10-06 16:04:15 +00:00
simonb
ba957518fe
Whitespace nits.
2003-10-06 02:53:33 +00:00
jdolecek
e6286b949a
Add some framework for MI assignment of device majors - add sys/dev/majors
...
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.
Range 0-191 is reserved for machine-specific assignments, range
192+ are MI assignments.
Follows recent discussion on tech-kern@
2003-10-05 08:04:24 +00:00
matt
85a83bcb92
Add COMPAT_16
2003-09-25 18:56:17 +00:00
shige
e0a74e8b1e
Rename ibm4xxGPx_autoconf.c to all lowercase filename.
2003-09-24 11:48:18 +00:00
shige
9c7b98f8ce
Add new evbppc port.
...
This port is for OpenBlockS266.
OpenBlockS266: IBM405GPr OpenBIOS.
X1226 is a rtc chip connected with IIC bus.
2003-09-23 14:45:12 +00:00
he
ff39169476
Revert addition of rnd here; it's already present due to the inclusion
...
of the WALNUT config file, so causes a duplicate definition error here.
2003-09-14 21:49:58 +00:00
itojun
fc918f8713
add rnd(4) device to installation media.
...
necessary for many purposes, including password seeding, tcp sequence number,
and more. see tech-security
2003-09-06 03:25:23 +00:00
itojun
4440262659
create /dev/crypto
2003-08-22 05:06:22 +00:00
eeh
677644de4b
Increase the size for the symbol table so we don't overflow anymore.
2003-08-18 23:20:06 +00:00
eeh
26ed6e652b
Do not rely on an address from one particular firmware version.
2003-08-18 21:34:11 +00:00
eeh
e898bed96b
Use the only documented method to get the board data from the firmware.
2003-08-18 21:30:51 +00:00
hannken
efc0a23c7d
Add lpt (for explora) as char 20.
...
This major number is unused in macppc.
2003-08-17 11:06:46 +00:00
hannken
af69915880
Add bus_dmamap_sync as dma regions are no longer uncached.
2003-08-16 15:40:41 +00:00
matt
a3a18840be
Remove SPILLSTK leftovers.
2003-08-12 05:15:41 +00:00
matt
c0d6cb285d
Nuke ci_curpm and curpm. Nuke pcb_pmreal. Those were use for spill stacks
...
and those no longer exist. for few uses that need CURPM, use CURPCB/PCB_PM
2003-08-12 05:06:53 +00:00
chs
b90614b54e
catch up with changes elsewhere.
2003-08-11 05:13:20 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
eeh
c07f47e182
The firmware actually passes the info block pointer in the link register.
2003-08-03 23:28:45 +00:00
eeh
f77f1feee5
Use %r<n> for register names.
2003-08-03 23:26:55 +00:00
matt
cef74eb810
Add #define _NOREGNAMES (to suppress asm.h from #define r1 1 ...)
2003-07-31 07:50:02 +00:00
scw
387af101cb
Fix an off-by-one error in pci_iot.
2003-07-29 08:18:03 +00:00
itojun
3f14c71f75
reserve cdev major # for PF. ok'ed by technical-exec
2003-07-27 14:17:57 +00:00
scw
abf277ed08
Adapt to the new ibm4xx bus(9) world order.
2003-07-25 14:34:33 +00:00
scw
1e296ec185
Add back an accidentally deleted 'return'.
2003-07-25 13:56:11 +00:00
scw
0b0e493eff
Switch ibm4xx ports to common powerpc bus_space/bus_dma code.
...
XXX: Walnut PCI support is broken. This will be addressed shortly.
2003-07-25 11:44:18 +00:00
simonb
16f1ab81b5
Correct a comment.
2003-07-16 08:06:10 +00:00
simonb
9b0c94bec0
Only need to call consinit() once...
2003-07-16 01:00:33 +00:00
simonb
5ebfa59966
Enable FFS_EI.
2003-07-16 00:52:59 +00:00
lukem
141727280b
__KERNEL_RCSID()
2003-07-15 01:31:38 +00:00
simonb
96df404b38
Use wrteei to disable interrupts; easier assembly and saves a temporary
...
variable.
2003-07-14 13:02:13 +00:00
simonb
0d42503562
Re-include "com.h" since we check NCOM in softserial(). Serial console
...
now works after properties rototill.
2003-07-14 12:59:36 +00:00
thorpej
1656a492ee
Set the mac-addr property of the on-chip emac device.
2003-07-04 02:35:38 +00:00
thorpej
d796e65ef5
Use device_register() to set the "frequency" property on the UART.
2003-07-04 02:21:50 +00:00
thorpej
1a4648d9ad
Add device_register().
2003-07-04 01:59:19 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
drochner
1a03e79900
don't #include <sys/dkstat.h> where it is (appearently) unused
2003-06-18 08:58:34 +00:00
fvdl
7dd7f8baa2
Handle 64bit DMA addresses on PCI for platforms that can (currently only
...
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
2003-06-15 23:08:53 +00:00
thorpej
0eff671820
Also pass a type argument to comcnattach() and com_kgdb_attach().
...
comspeed() (and thus cominit()) may need this information.
2003-06-14 17:01:06 +00:00
scw
d984534d7f
The GT is always host on both PCI busses.
2003-06-12 19:21:09 +00:00
hannken
ff0f991625
Add symtab to kernel image using dbsym(8).
...
Add /dev/ksyms.
2003-05-31 12:00:59 +00:00
he
af0f8cc629
Include <sys/disk.h> to get "struct disk" defined.
...
Approved by thorpej
2003-05-12 14:46:13 +00:00
thorpej
e43fecb228
Change bounds_check_with_label() to take a pointer to the disk structure,
...
rather than the label itself. This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
thorpej
2a90e2a9c9
Remove redundant bounds_check_with_label() prototype.
2003-05-10 16:12:02 +00:00
dsl
d91455ce26
Change return type of readdisklabel() to const char *
...
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
ragge
1989d659bb
Preserve the symbol table in the LKM || KSYMS cases also.
2003-04-27 10:42:48 +00:00
ragge
69a66687f8
Call ksyms_init() instead of ddb_init() in case of
...
NKSYMS || defined(DDB) || defined(LKM)
2003-04-26 11:05:05 +00:00
ragge
766d04f56a
Add ksyms device major.
2003-04-25 21:10:46 +00:00
bouyer
aec10dd80c
Nake return values from bounds_check_with_label() conform to the man
...
page: -1 for error, 0 for EOF, 1 otherwise. Inspired by an OpenBSD commit
message, pointed out by Miod Vallat in private mail.
vax/mba/hp.c: check return value <= 0, not < 0 to be concistent with how
other places handle return values from bounds_check_with_label().
2003-04-16 15:00:59 +00:00
wiz
56a51233b4
Make it wsfont/wsfont instead of wsfont/wsmux, just like the other ports.
2003-04-16 09:41:54 +00:00
christos
b9f9db3ca2
Bye Bye UCONSOLE
2003-04-10 22:06:51 +00:00
matt
4daebcbff5
Make the imask_t typedef a struct rather than a naked array. The attribute
...
on the array typedef was contaminating other u_int32_t naked arrays and
affecting their alignment.
2003-04-09 15:44:26 +00:00
thorpej
9a8042f242
Use PAGE_SIZE rather than NBPG.
2003-04-08 22:57:53 +00:00
matt
eb675c41cf
Select MPSC console and the proper PCI slots. Use -D__boardtype__ instead
...
of -Dboardtype.
2003-04-08 19:35:24 +00:00
thorpej
fd53a1c386
Use PAGE_SIZE rather than NBPG.
2003-04-02 03:51:33 +00:00
matt
2cf5fc0ece
Add options to allow overriding of PCI0 & PCI1 MEM and I/O start and sizes.
2003-03-27 07:19:11 +00:00
matt
1ebbd9b463
Make PCI interrupts -> GPP mapping configured via config file.
...
Add bus_spaces for all possile obios. Add gt_halt to make
sure the discovery is not doing dma as soon as possible.
Read the SDRAM register to figure out how much physical RAM
is available.
2003-03-24 17:07:15 +00:00
matt
13db562ca9
Remove unneeded code in pci_bus_configure (was pci_config_bus). Fix
...
setting of bus_spaces in gt_attach.
2003-03-18 19:35:01 +00:00
matt
0200088d83
Enable iobats for the PCI memory space(s).
2003-03-18 19:33:50 +00:00
matt
0a2b7ed22b
Switch to gtmpsccnattach. Fix a few bugs in bus_space initialization.
2003-03-18 14:59:12 +00:00
matt
0b9b6810a5
Removed unused variable.
2003-03-18 14:56:48 +00:00
matt
3ec00b9a8f
work around a cache problem. (flush both caches and disable the D-cache).
2003-03-18 14:56:21 +00:00
matt
a935178cad
remove "kludge" com console.
...
Simplify timebase initialization.
2003-03-17 23:28:09 +00:00
matt
0fb35cae8c
Get CLOCKBASE from opt_ppcparam.h.
2003-03-17 23:24:41 +00:00
matt
ecc8926154
Add CLOCKBASE=100000000
2003-03-17 23:23:47 +00:00
hannken
afb54fa917
Add hardware accelerated copy/erase ops.
2003-03-17 18:39:23 +00:00
matt
77533df068
Remove some debugging code.
2003-03-16 08:12:26 +00:00
matt
f5110f7988
EV64260 now gets to single user prompt using COM1 (2nd uart) as console
...
with PPCBOOT as firmware. XXX PCI devices are not found.
2003-03-16 07:07:17 +00:00
matt
8344279675
Synchronize macppc and evbppc majors when possible. Add a lot of missing
...
devices to evbppc.
2003-03-13 17:02:52 +00:00
hannken
42cc9f8839
Add wscons to MAKEDEV. Add wsfont major number.
2003-03-13 14:56:56 +00:00
hannken
249e0067fe
Add a port to the NCD Explora451 ThinClient.
...
- Supported devices: le, com, lpt, pckbd, frame buffer.
- Support missing: phy, audio, pcmcia.
- Boots from network or md.
Approved by: Eduardo Horvath <eeh@netbsd.org>
2003-03-11 10:57:54 +00:00
hannken
44b1e07ec9
Add support for the IBM 403GCX cpu. Enabled with "options PPC_IBM403".
...
- different set of device control registers.
- non-standard access to the time base.
- 16 byte cache lines.
Approved by: Eduardo Horvath <eeh@netbsd.org>
2003-03-11 10:40:15 +00:00
matt
dfb9f2d504
Remove some constant (use value in bus_space_tags).
2003-03-07 18:24:00 +00:00
matt
feeb962699
Correct pci1 bus_space tag.
2003-03-06 20:15:24 +00:00
matt
3dc865b386
Relocate Discovery first thing in initppc (if not at expected address).
...
This implies that if PMON tells us where the GT is, we write that address
in gtbase.
2003-03-06 06:04:21 +00:00
matt
a190651169
Make most of PPC (OEA) bus_space's identical (or as identical as possible).
...
(except mvmeppc).
2003-03-06 05:25:18 +00:00
matt
ff2281b498
Add preliminary support Marvell (Galileo) Discovery System Controllers.
...
This code was contributed by Allegro Networks.
2003-03-05 22:08:18 +00:00
matt
92d0498c3d
Remove port-specific procfs_machdep.c (since they are all identical and
...
a better one resides in powerpc/powerpc/).
2003-03-05 05:43:42 +00:00
matt
e1d9426036
Make to define ${BOARDTYPE}
2003-03-04 07:52:21 +00:00
matt
107803a3a3
Re-arrange things in evbppc & powerpc to support OEA-based eval boards
...
in evbppc. OEA-based board(s) to be added later.
2003-03-04 07:50:57 +00:00
matt
4f493fc42d
Zero bss in start, not in initppc.
2003-02-24 08:06:42 +00:00
thorpej
15e901c4b9
No need for DEBUG in an install kernel.
2003-02-07 04:47:04 +00:00
nakayama
e3e4805068
Replace machine/rnd.h with more appropriate name to share it
...
with cycle counter based microtime in kern/kern_microtime.c.
2003-02-05 13:57:50 +00:00
matt
b4450c6d3c
Move ibm4xx vmparam.h to powerpc/include/ibm4xx directory. Add a stub
...
vmparam.h to choose the right vmparam. This is needed so evbppc can host
both ibm4xx and oea based eval boards.
2003-02-03 23:09:29 +00:00
matt
2b0e97a561
Rename PPC_MPC6XX to PPC_OEA (and any mpc6xx reference to oea).
2003-02-03 17:09:53 +00:00
matt
3e793a03a1
More cleanup for OLDPMAP.
2003-02-03 05:15:51 +00:00
matt
7c1e50a21a
Perform a rototill of the powerpc code. Mandate use of SPRG0 to store
...
a pointer to current cpu's cpu_info structure. Use cpu_info for
intstk,intr_depth,still_stk,idle_pcb,curpcb,curlwp,etal even on
non-MULTIPROCESSOR machines. Add common macros GET_CPUINFO and
INIT_CPUINFO to get and initialize the cpu_info struct on startup. Make
ibm4xx use the standard <powerpc/frame.h>. Use IFRAME_xx in ibm4xx
trap_subr.S instead of explicit magic offsets. Move INTSTK and SPILLSTK
to std.<platform>. Change faultbuf to a struct instead of an array.
On MPC6XX cpus, stop using the vector page for temporary space and use
reserved space in cpu_info.
2003-02-02 20:43:17 +00:00
matt
e680c1c1e9
Load SPRG0 with &cpu_info_store.
2003-01-30 07:46:28 +00:00
thorpej
23bc250391
Merge the nathanw_sa branch.
2003-01-17 21:55:23 +00:00
lukem
4bb41ae2f2
Rework how KERNOBJDIR functions; now it's always determined with
...
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.
The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.
This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile. Remove the now-unnecessary .keep_me files
whilst here.
Per lengthy discussion with Andrew Brown.
2003-01-06 17:40:18 +00:00
thorpej
4f162f46b9
Make this compile without DDB.
2003-01-04 18:14:48 +00:00
thorpej
296dfde575
Remove KERNFS silliness.
2003-01-04 18:14:22 +00:00
thorpej
c72ac1fcf2
Don't fail the kernel build if dbsym fails.
2003-01-04 18:13:51 +00:00
thorpej
1132348b98
Use aprint_normal() for cfprint routines.
2003-01-01 01:24:19 +00:00
thorpej
0ad39e91ea
Fix sysmon entry.
2002-12-31 22:43:38 +00:00
thorpej
2a39e8388d
Merge the IBM 4xx into the common powerpc/locore_subr.S, and
...
eliminate all the duplicated context switch related code in
the IBM 4xx port.
2002-12-19 19:37:25 +00:00
thorpej
78ea2dd367
Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out
...
executables, and eliminate the USRTEXT constant, which was only used
by the a.out exec code.
2002-12-10 05:14:24 +00:00
scw
f1d6e9e873
Add pmc.h
2002-12-09 12:17:42 +00:00
scw
5448df2eed
New umbrella-port for PowerPC-based evaluation boards.
...
The first board to be included here is the port to the 405GP-based
Walnut evaluation board, which up until now lived in arch/walnut.
arch/walnut will go away soon, once all the remaining walnut-isms
in the tree have been dealt with.
2002-12-09 12:15:48 +00:00