Commit Graph

269 Commits

Author SHA1 Message Date
toshii
02811d05f2 Fix a bug which caused interrupt loss. 2001-03-31 12:49:21 +00:00
toshii
2efdaff40e Set hardware interrupt masks in sa11x0_intr_{establish,disestablish}. 2001-03-31 12:48:10 +00:00
toshii
129f529148 Back out most of rev 1.4 so that it compiles again. 2001-03-31 12:36:53 +00:00
toshii
dfddb1e107 Increase spl_masks[] size by one and set the extra element to 0.
irq_entry accesses here.
2001-03-31 12:22:37 +00:00
toshii
221f247a25 Add some missing functionality.
- wait READY signal in enable function
 - use tsleep for large delays
 - implement disable function
2001-03-27 18:06:39 +00:00
lukem
20ba07f2fe - add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
and use appropriately

- create more helper macros:
   . cdev__xyz_init(c,n), such as cdev__ocri_init() for
     /* open, close, read, ioctl */, etc.
   . cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
     method `R' and the comments now read /* xxx (read) yyy */ instead
   . cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
     as well

- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
  always DTRT WRT returning a valid result.  (a few devices previously
  incorrectly returned ENODEV)

- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
  == 0, because it doesn't matter if dev_type_stop isn't implemented in that
  case, and it allows the use of the cdev__xyz_init macros. certain ports
  (sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
  drivers, whereas everything else uses enodev

- ensure that the comments are accurate WRT the behaviour of a given entry
2001-03-26 12:33:22 +00:00
toshii
d2f3ad2de2 Support machdep.booted_kernel sysctl. 2001-03-23 11:10:10 +00:00
toshii
7ed6dadd10 Handle bootargs passed by hpcboot.
Change stack pointer initialization.
2001-03-23 08:58:14 +00:00
toshii
2d6322c3be Handle ELF symbol table. 2001-03-22 03:45:39 +00:00
lukem
9f60674a47 now that duplicated stuff has been moved to sys/conf.h, remove unnecessary
defs for: lpt, joy, pc
2001-03-21 23:42:14 +00:00
toshii
7e9512010c Oops. I forgot this line. 2001-03-21 17:43:39 +00:00
toshii
4b32677535 Map DMA controller and disable its DMA channels. 2001-03-21 17:42:37 +00:00
toshii
f8dab8e69a Make card insertion/removal work.
XXX powerdown and {io,mem}_unmap are still missing.
2001-03-21 16:16:35 +00:00
toshii
7c429e90c2 Handle interrupt polarity. 2001-03-21 16:08:34 +00:00
toshii
f1b9737b90 Fix nit. 2001-03-21 14:48:30 +00:00
toshii
d16849a006 Make this compile again. 2001-03-21 14:40:00 +00:00
toshii
1f21d8b280 hpcarm kernel is ELF. 2001-03-20 18:01:49 +00:00
chs
ac3bc537bd eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

KERN_SUCCESS			0
KERN_INVALID_ADDRESS		EFAULT
KERN_PROTECTION_FAILURE		EACCES
KERN_NO_SPACE			ENOMEM
KERN_INVALID_ARGUMENT		EINVAL
KERN_FAILURE			various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE		ENOMEM
KERN_NOT_RECEIVER		<unused>
KERN_NO_ACCESS			<unused>
KERN_PAGES_LOCKED		<unused>
2001-03-15 06:10:32 +00:00
toshii
c08eec9f47 Use hpc/hpc/disksubr.c. 2001-03-14 14:47:40 +00:00
bjh21
aebf9049d4 Update to use install_coproc_handler_static(), since install_coproc_handler()
isn't safe this early.

XXX hpcarm should use db_machine_init() to do this.
2001-03-13 20:52:48 +00:00
toshii
1bb261e173 Fix interrupt handling somewhat so that break signal gets DDB. 2001-03-12 03:27:18 +00:00
toshii
ffe630e7c3 Sync with sa11x0_reg.h rev 1.4. 2001-03-11 14:37:03 +00:00
ichiro
ea4611b0cd add ExtendedGPIO desc of iPAQ H3600 2001-03-11 07:27:36 +00:00
ichiro
2cb44b8020 add h3600 and jornada720 gpio port and irq 2001-03-11 06:00:42 +00:00
toshii
a9e9b871de Add sacc, sacpcic, and sagpcic. 2001-03-10 19:05:40 +00:00
toshii
f14e35f58e Driver code for SA11x1 based PCMCIA devices. 2001-03-10 19:01:27 +00:00
toshii
79d31f6571 Common driver code for SA11x0 PCMCIA function. 2001-03-10 19:00:39 +00:00
toshii
57abc92eeb This file is no longer used. PCMCIA driver code is divided into
sa11xx_pcic*, sa11x0_pcic* and sa11x1_pcic*.
2001-03-10 18:59:22 +00:00
toshii
2d36b2225d Support SA1111 companion chip. 2001-03-10 18:50:37 +00:00
toshii
356943c6c4 Fix nit. Read functions were actually writing. :-( 2001-03-10 17:32:14 +00:00
toshii
3a52278a23 Map GPIO registers in saip. 2001-03-10 15:34:38 +00:00
toshii
4c08e34e90 hpcarm/hpcarm/ast.c is no longer. 2001-03-10 14:10:51 +00:00
toshii
b2cb6de80e Use sa11x0_bs_tag instead of mainbus_bs_tag. 2001-03-10 13:34:34 +00:00
toshii
a62d9f6fa0 Handle the offset argument in bus_space_{read,write}* correctly. 2001-03-10 13:29:38 +00:00
toshii
4333644371 Copy bus_space_map() function from arm/mainbus/mainbus_io.c. 2001-03-10 13:27:53 +00:00
toshii
9224009c5d Fix bugs in delay().
- it could wait infinitely.
 - large roundoff error.
2001-03-09 18:55:29 +00:00
toshii
aa76b5208c Make it compile again after arm, arm32 changes. 2001-03-09 12:13:15 +00:00
matt
b7cd0eeaac Move arm32/arm32/ast.c to arm/arm32/ast.c 2001-03-06 07:52:35 +00:00
bjh21
83b8de43dd Move undefined.c from sys/arch/{arm32/arm32,hpcarm/hpcarm} to sys/arch/arm/arm
in preparation for making it usable on arm26 as well.
2001-03-05 23:06:14 +00:00
toshii
850f81157a Fix an error printf format. 2001-03-05 07:11:18 +00:00
bjh21
25ec015449 Merge setregs() from sys/arch/arm32/arm32/machdep.c,
sys/arch/hpcarm/hpcarm/machdep.c and sys/arch/arm26/arm26/vm_machdep.c
into sys/arch/arm/arm/arm_machdep.c.
2001-03-04 23:25:00 +00:00
bjh21
aa34be4532 Make "options ARMFPE" work again.
Mostly due to Richard Earnshaw.
2001-03-04 14:32:12 +00:00
bjh21
0bf382d920 Remove redundant cdev_decl(cpu). 2001-03-04 14:14:23 +00:00
matt
b575ca9f67 Remove local copies of these since they are now shared and are
in arm/arm32
2001-03-04 08:29:22 +00:00
matt
93c0e77b0f Only define MACHINE & MACHINE_ARCH in port-dependent param.h.
Everything else (since it's common) is from <arm/arm32/param.h>
2001-03-04 08:28:51 +00:00
matt
58438fb425 Move compat_13_machdep.c, strstr.c, copystr.S, bcopyinout.S, and
bcopy_page.S to arm/arm32 and remove port-local copies.
2001-03-04 08:25:38 +00:00
bjh21
c32dba2092 Remove support for /dev/cpu*. This code has never done anything useful anyway. 2001-03-03 18:04:34 +00:00
bjh21
c25aec3d9f PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26).  Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway).  Someone should try running one.
2001-02-28 18:15:42 +00:00
bjh21
4b483d7606 Move "options ARMFPE" to files.arm, so generic ARM files can use it. 2001-02-27 17:56:31 +00:00
bjh21
6584a7e79d This file doesn't need <machine/cpus.h>. 2001-02-26 16:33:10 +00:00
reinoud
7127877cf8 Putting param.h back into hpcarm's include 2001-02-26 00:07:54 +00:00
bjh21
3fb058011a Move arm32 ports over to using <arm/armreg.h>, so <cpu.h> mostly contains
NetBSD-specific definitions.

This also entails some changes to the way CPU identification is done.  I hope
I've got it right.
2001-02-25 21:31:13 +00:00
bjh21
846fe69958 Remove CPU_* options (they're in files.arm now -- for some reason I missed
this lot in the last commit).
2001-02-25 18:28:27 +00:00
toshii
64d5dfd570 Use MI md_root.c. 2001-02-25 15:45:23 +00:00
reinoud
142f62c206 Moved the mainbus files to the arm/conf/file.arm from the arm32 and the
hpcarm/conf/files.hpcarm
2001-02-24 21:43:01 +00:00
reinoud
e89d229692 Make hpcarm compile again after movement of mainbus code 2001-02-24 20:13:59 +00:00
reinoud
f583057770 Repaired a syntax fault in the files.[hpcarm,arm32] 2001-02-24 19:43:50 +00:00
reinoud
086a93939c Part 2 of merge.... the dissapearance of mainbus from arm32 and hpcarm;
these parts were a 100% the same and i've included the extensions made by
hpcarm in the tree.
Checked for occurence of MD parts; none found.
2001-02-24 19:38:01 +00:00
toshii
ce7d8943e9 Use hardware address for saost. 2001-02-24 12:52:02 +00:00
toshii
735cec473d Remove unneeded hardcoded IO mappings. 2001-02-24 12:48:58 +00:00
toshii
6fee490e68 Use working bus_space_map. 2001-02-24 12:43:52 +00:00
toshii
dfe9d2faf7 Implement bus_space_map(). 2001-02-24 12:41:20 +00:00
ichiro
9eeb0264fd change com-speed to 19200.
default com-speed of hpcboot are 19200
2001-02-24 11:08:31 +00:00
ichiro
ba1664c1f3 add profile.h,profileio.h 2001-02-24 07:16:51 +00:00
ichiro
b84bcefc8e i forgot writing some include files in Makefile 2001-02-24 07:09:20 +00:00
bjh21
6b7ad3aa3e __HAVE_NWSCONS and __HAVE_DEVICE_REGISTER are MACHINE-dependent. 2001-02-23 22:02:43 +00:00
reinoud
c1f753f9b4 Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
2001-02-23 21:23:45 +00:00
ichiro
5137cda306 delete local-ID for cvs 2001-02-23 04:31:18 +00:00
ichiro
c98cd6c023 hpcarm:
kernel for StrongARM-based WinCE PDA machine.
2001-02-23 03:48:06 +00:00