Commit Graph

1627 Commits

Author SHA1 Message Date
dsl
c88ae1f9ee Move all the stuff that detects bswapxx(constant) into the MI sys/bswap.h
Put the minimum to define the required inline assembler or C into the MD files.
NB: there may be some fallout from this!
2006-01-30 22:46:35 +00:00
dsl
2723c11bd9 Move the definitions of ntohl() and friends into sys/endian.h where they
are defined in terms of bswap32() and bswap16().
This makes the definition be in the same place for all systems regardless
of creed^Wendianness.
2006-01-30 21:52:38 +00:00
christos
3ffa241fcd Add a STRONG_ALIAS macro 2006-01-20 22:02:40 +00:00
peter
cd07804bde Remove unnecessary #ifdef hpcarm + includes. 2006-01-03 23:14:23 +00:00
yamt
6d12f0a6d7 implement splraiseipl() for the following ports.
evbarm, iyonix, cats, netwinder, acorn26

reviewed by Bill Studenmund.
2006-01-01 14:24:33 +00:00
perry
2d542ba1f8 inline -> __inline 2005-12-28 19:09:29 +00:00
perry
e7b322a5f7 inline -> __inline 2005-12-28 18:40:13 +00:00
yamt
1c535f7467 sacom_attach_subr: don't try to initialize a lock which doesn't exist. 2005-12-27 11:10:06 +00:00
chs
33d70de438 remove the COM_MPLOCK option. always include the spinlock in the softc
and always call the simple_* locking functions.  the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
2005-12-27 00:46:38 +00:00
perry
50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry
2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
briggs
c9d34b2987 Add an offset to the I/O port translations. This allows IQ80321
and others to avoid providing PCI I/O space at address 0.
Iyonix, however, needs to provide PCI I/O space at 0.
The others require I/O space to be offset in part due to a bug
work-around in wm(4) which requires that I/O space access be used
to reset the controllers.  If I/O space is mapped at zero, the card
claims, but ignores, the transactions, and the controller doesn't
get reset properly and can't then be used.
2005-12-15 01:44:00 +00:00
christos
0e9d2fc182 proc -> lwp, ansi 2005-12-14 00:32:29 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
scw
5536ecb20f Implement pmap_collect() for arm32. 2005-12-10 21:19:57 +00:00
yamt
6bba73019a use VM_PAGE_TO_PHYS macro. 2005-12-08 22:41:44 +00:00
ross
b026f0ed35 Must have a nop after an add to the pc.
This corrects a bug affecting kcopy() to unaligned dst addresses.
2005-12-06 08:05:31 +00:00
yamt
bc21da4cfb bus_dmamem_map: honour BUS_DMA_NOWAIT. noted by Manuel Bouyer.
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.

we have too many copies!
2005-11-24 13:08:32 +00:00
hamajima
3caa0d4092 delete dummy entries for vmstat. (unnecessary since May 2005) 2005-11-12 08:17:59 +00:00
hamajima
7959c31a5f add new EP93xx device drivers.
epgpio: GPIO Interface (support gpio(4))
	epled:  LED on epgpio
	eppcic: PCMCIA Interface
	eprtc:  Realtime clock
	epwdog: Watchdog timer

changes
	ep93xx_intr: add dummy entries to keep vmstat happy.
	epclk:       I use Timer1 and generate 100Hz if set.
	epe:         attach epclk and epgpio first.
	             fetch the Ethernet address from property if set.
	             I use config flags and modify MDCDIV.
2005-11-12 05:33:23 +00:00
scw
92fa4843f1 Give THUMB_CODE its own 'struct undefined_handler' so we don't try to
install the same handler structure twice (for difference coprocs).

Spotted by dbj@ using QUEUEDEBUG.
2005-11-10 11:18:55 +00:00
dbj
af56e26cc6 partially revert previous commit stripping arm mapping symbols
it broke ddb when DEBUG wasn't set to -g.
2005-11-10 09:42:42 +00:00
peter
70417e76a9 Make this compile when DEBUG is defined. 2005-10-23 15:30:02 +00:00
peter
545de90bdb Fix some typos. 2005-10-23 15:04:43 +00:00
dbj
237f025382 strip arm mapping symbols for ddb using STRIPFLAGS instead of SYSTEM_LD_TAIL
this works even for kernels compiled with -g and doesn't interfere with gdb
2005-10-21 14:40:03 +00:00
hamajima
0f9691137b Fix write sequence to PHY.
I write a data first, but I wrote a command first.
2005-10-19 14:01:49 +00:00
pooka
6c4ca17312 foreach NOTEACHED make the comment say NOTREACHED 2005-10-10 09:58:54 +00:00
yamt
d597202302 make VMSWAP optional again. 2005-09-17 14:38:38 +00:00
martin
adcdbe2c3d Now that process_frame() is a macro (done "unannounced" in arm's
include/frame.h), don't try to define an inline function with the
same name and same contents.
2005-09-14 18:26:31 +00:00
he
80a9d6b5a5 Now that process_frame() is a macro (done "unannounced" in arm's
include/frame.h), don't try to define an inline function with the
same name and same contents.
2005-09-14 10:51:22 +00:00
christos
afffbeb330 split compat_16 functions to their own file and make this compile again. 2005-09-13 22:07:47 +00:00
kleink
aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
drochner
44bf0a7ee2 s/locdesc_t/int/g 2005-08-26 13:19:34 +00:00
skrll
ddf730e9d9 Fix RCSID. 2005-08-19 19:45:43 +00:00
he
79220f0c2a Fix one more missed clockframe -> irqframe transition. 2005-08-14 21:08:32 +00:00
he
1aaad1fbee Follow up the type change of i80200_extirq_dispatch which now takes
an irqframe* and not a clockframe* as argument.
2005-08-14 19:23:17 +00:00
joff
f0e1f44063 Fix argument mismatch (clockframe * vs. irqframe *) in ep93xx_intr_dispatch() that
has been causing compile failures.
2005-08-14 03:10:16 +00:00
joff
02b3ec89cf SSP locations needs to be defined since tspld device uses it to talk to the
TS-7200 temperature sensor.  While here, add some more GPIO registers too.
2005-08-14 03:07:30 +00:00
cube
9f1eb3e30f Change all archs that did:
#define clockframe somethingelse

to:

struct clockframe {
	struct somethingelse cf_se;
};

and change access macros accordingly.

That means that, at least for that very issue, things will not go
ka-boomy if you don't have the actual definition of struct clockframe
before including systm.h.
2005-08-11 20:32:55 +00:00
yamt
38ca5312d2 revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
2005-07-31 04:04:30 +00:00
chris
195158eb08 When the footbridge does a bus space mapping it should default to
making the mapping not cacheable, and only allow caching if the relevant
flag is passed in.

This doesn't seem to fix, or break anything, but it matches the expected
bus space API.
2005-07-30 15:14:29 +00:00
yamt
1d0891101c defflag VMSWAP. 2005-07-30 06:33:33 +00:00
nonaka
c678505909 Added i80219. 2005-07-20 14:38:11 +00:00
christos
f1461c7e8a No point in declaring syscall_intern and syscall in a zillion places. 2005-07-10 00:45:52 +00:00
bsh
5775b1bc3e Reduce 1K bytes of code size by gathering calls to panic into one
subroutine.
2005-07-04 02:03:27 +00:00
bsh
c61364bf3e The first step to support Intel PXA270.
kernel config option CPU_XSCALE_PXA2X0 is now obsoleted by
CPU_XSCALE_PXA250 and CPU_XSCALE_PXA270.  If both of them are defined,
CPU is determined run-time.
2005-07-04 00:42:36 +00:00
bsh
c5dfef4764 add register definitions for PXA270, including those for USB host controller.
rename some constants from PXA2X0_* to PXA2[57]0_* since they have different values for PXA270.
2005-07-04 00:27:24 +00:00
he
e831e8461d Make the vidcsearch() prototype match the function declaration. 2005-07-03 23:09:03 +00:00
bsh
d8876765c5 + use constants defined in xscalereg.h instead of 0x0001.
+ clear CPU cycle counter in pxaip_measure_cpuclock()
+ style.
2005-07-03 16:57:44 +00:00