Commit Graph

2377 Commits

Author SHA1 Message Date
thorpej
f51470a514 Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED.  These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case).  Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
ad
db06ac868b Attach cac* and ca*. 2000-04-28 13:51:56 +00:00
ad
8f9b06a9e6 - Enable ca(4) device.
- Fix a couple of nits.
2000-04-28 13:50:25 +00:00
thorpej
0cde36f780 Carve off the ISA configuration bits from the floppy driver. Driver is
still ISA-specific, but we can attach ISA instances with different
configuration mechanisms now.
2000-04-23 16:47:45 +00:00
thorpej
bedbdf87a4 rl -> rtk 2000-04-22 16:28:48 +00:00
haya
784977f319 Changes the name of RealTek driver. The new name is `rtk'. This used
to be called `rl' and it conflict with RL vax disks, canonical and
historical unix driver name.

This changes are minimal: it only changes the name of RealTek driver.
The filename of source code and a lot of the letter `rl' in source
files should be changed shortly.
2000-04-19 08:44:31 +00:00
itojun
3be41bae18 add stf pseudo interface (commented out due to possible security risks) 2000-04-19 06:50:27 +00:00
tron
939041f1aa Fix typo in last commit. 2000-04-18 14:48:53 +00:00
drochner
13c9f8d398 implement bus_space_vaddr() 2000-04-17 17:24:48 +00:00
simonb
856c6ff149 Remove duplicate CTL_MACHDEP definitions (duplicated in <alpha/cpu.h>). 2000-04-10 06:04:28 +00:00
chs
64bb56dcc8 add decls for fd driver. 2000-04-10 01:19:13 +00:00
thorpej
a9f69b00d2 Use UVM_PGA_ZERO. 2000-04-10 00:48:35 +00:00
nathanw
69b1a83709 Restore sysbeep (accidentally removed in last commit). 2000-04-07 18:58:09 +00:00
thorpej
6dd5a9db6e Use dev/isa/fd.c. 2000-04-07 16:35:19 +00:00
thorpej
156114a02f Use the new cpu_amask variable rather than calling alpha_implver() and
alpha_amask() ourselves.
2000-04-03 01:48:07 +00:00
thorpej
55287d7159 Print any architecture extensions present on the primary CPU. 2000-04-03 01:47:28 +00:00
thorpej
dbcb4cee48 Fix a typo in a previous revision, and add bit names for amask bits for
use with bitmask_snprintf().
2000-04-03 01:10:17 +00:00
mycroft
cfeee7a4ef Enable de, since tlp doesn't support one of my cards. 2000-04-03 01:04:36 +00:00
augustss
9a31a8c77f Add atapibus* at umass? 2000-04-03 00:03:28 +00:00
thorpej
2bc5adb20e Instead of checking vm_physmem[<physseg>].pgs to determine if
uvm_page_init() has completed, add a boolean uvm.page_init_done,
and test against that.  Use this same boolean (rather than
pmap_initialized) in pmap_growkernel() to determine if we are
being called via uvm_page_init() to grow the kernel address space.

This fixes a problem on some i386 configurations where pmap_init()
itself was needing to have the kernel page table grown, and since
pmap_initialized was not yet set to TRUE, pmap_growkernel() was
choosing the wrong code path.

Fix tested by Havard Eidnes.
2000-04-02 20:39:14 +00:00
minoura
78b105698a Move dl* function definitions to libc on ELF.
Based on the patch supplied by Takuya Shiozaki <tshiozak@astec.co.jp>.
See http://mail-index.netbsd.org/tech-userlevel/2000/02/23/0000.html.
2000-04-02 15:35:47 +00:00
simonb
0edd529101 Extern declaration of cputype. 2000-03-29 03:50:40 +00:00
simonb
5b911637a1 Remove redundant decl for phys_map - it's in <vm/vm_kern.h>. 2000-03-29 03:49:48 +00:00
simonb
868578431b Remove redundant decl for physmem - it's in <sys/systm.h>. 2000-03-29 03:49:02 +00:00
simonb
e764ed49e6 Remove redundant decl of msgbufmapped - it's in <sys/msgbuf.h>. 2000-03-29 03:48:20 +00:00
simonb
9ff7681a33 Don't need to include <sys/conf.h> here. 2000-03-29 03:43:31 +00:00
enami
4feca5e9ea Remove unnecessary cast in previous. Pointed out by shin@netbsd.org. 2000-03-29 03:09:15 +00:00
simonb
d7a08fd8c5 Don't declare a variable in the 'struct platform' declaration - we declare
an extern for 'struct platform platform' further down this file anyway,
and this would have declared a 'platform' variable in any userland code
including this file.
2000-03-29 02:59:18 +00:00
enami
b31c6d62e2 Fix previous in a different way. 2000-03-27 06:41:02 +00:00
enami
24a0efebab Fix compilation error (printf format mismatch) due to recent round_page()
change.  While I'm here I fold the long line.
2000-03-27 04:01:54 +00:00
kleink
230876cf26 Merge parts of chs-ubc2 into the trunk:
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
  make them type-generic, which is necessary i.e. to operate on file offsets
  without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
  integral type (paddr_t, vaddr_t).

Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
nisimura
ae55376f19 - Remove unused bt459reg.h.
- sfbvar.h has gone, placing patch on holes for now.  Every TC framebuffer
  has a single explosure of xxfb_cnattach() which could be bridged by MI
  land.
2000-03-26 10:32:51 +00:00
nisimura
99806742c0 Remove local implementation switching to accelerated MI sfb.c. 2000-03-26 05:52:17 +00:00
nisimura
58e4b0efbe A minimal fix to make this compilable. 2000-03-24 08:24:29 +00:00
thorpej
4ad898818b Fallout from callout. 2000-03-24 01:04:11 +00:00
thorpej
b667a5a357 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:30:07 +00:00
thorpej
3e93b28029 Use a software interrupt for tty input processing, not a callout. 2000-03-23 01:04:10 +00:00
cgd
7c35662066 add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE. 2000-03-22 00:58:16 +00:00
thorpej
800e276128 Fix INTRCNT_DEC_550_IRQ_LEN. From Nathan Williams. 2000-03-21 02:17:11 +00:00
thorpej
3eed2414e5 Handle a few more SPECIAL intructions. 2000-03-20 02:54:45 +00:00
thorpej
3c8d09cc56 Update the amask bits. 2000-03-20 02:19:44 +00:00
thorpej
f785596e75 Add support for mapping the OHCI USB controller interrupt (which is wired toan ISA IRQ because it's in the same package as the PCI-ISA bridge). 2000-03-19 02:25:29 +00:00
thorpej
ac93a75106 Point back to the alpha_shared_intr in the intrhand structure. This
allows platform-specific code to access the `intr_private' data via
the intrhand structure.
2000-03-19 01:46:18 +00:00
thorpej
c10a9d31ea Put the code that enables/disables Pyxis interrupt lines in
cia_pyxis_intr_enable().
2000-03-19 01:43:25 +00:00
tron
e86957458a Install "machineendian_machdep.h". 2000-03-17 22:36:31 +00:00
mycroft
9e21b6555a In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
mycroft
02905321b2 Foolish consistency. Mainly, always use underscores and sys/endian.h. 2000-03-16 15:09:34 +00:00
nisimura
f7f5e0a24c Note that HX (PMAGB-B) has no support for small (less than 8 pixel width)
font.  If attempted, kernel will explode.
2000-03-16 08:42:40 +00:00
drochner
aa1de89bdf explicitely #include <sys/systm.h> #if BUS_SPACE_DEBUG to get a printf()
prototype
2000-03-15 16:44:48 +00:00
nisimura
220005d941 Eliminate unused sc_cookie field of struct ioasic_softc. 2000-03-15 03:07:44 +00:00
oster
1bad2e1909 Add the RAIDframe device major to the machine-dependent config files
so that the right entries get added to dev_name2blk[].  Needed for / on RAID.
(Whoops!  I missed checking these in when adding the RAID_AUTOCONFIG stuff.)
2000-03-14 15:56:51 +00:00
nisimura
8bf44847a8 Fix DEC3000/300 TC slot numbering. There is an address space hole
between two TC option cards and 3 builtin TC devices.  Was uncovered by
mrg's change made at Nov 1999 and pointed by tsutsui.
2000-03-14 05:53:33 +00:00
nisimura
6f5486c425 Switch to MI sfb (PMAGB-B) TC framebuffer driver which sports faster
text rendering assisted by SFB ASIC.
2000-03-14 05:34:04 +00:00
nisimura
8de02d3a76 - Comment out cfb (PMAG-B) 1024x768 framebuffer.
- Have Gallant19 font by default.
2000-03-14 05:31:16 +00:00
nisimura
b3a2990ce5 Redo the previous commit; duplicated lines. 2000-03-14 02:55:04 +00:00
nisimura
38ed3db66f Synchronize with recent progress of GENERIC. 2000-03-14 02:53:04 +00:00
soren
95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
cjs
0aaf8765ad Add reminder to add stuff to ALPHA as well as this. 2000-03-09 22:27:26 +00:00
cjs
fe76319160 Add ident and RAID_AUTOCONFIG to bring up to date with GENERIC. 2000-03-09 22:26:41 +00:00
kleink
a9ebf7bb8c Define ISO C99 (unsigned) long long (min, max) symbols. 2000-03-07 19:31:49 +00:00
tsutsui
d16c6f3272 Use DISKPART/DISKMINOR/DISKUNIT instead of dkpart/dkminor/dkunit. 2000-03-07 15:55:14 +00:00
thorpej
a183d34f04 - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
thorpej
23c5667cfe Use ANSI-style function declarations for the various inline functions
here.  Addresses port-alpha/9056.
2000-03-05 18:46:14 +00:00
thorpej
7d57276982 Do partial lazy I-stream sync -- in the pmap_enter()/pmap_remove() cases
for now.  More to come.
2000-03-01 18:29:04 +00:00
thorpej
908f6bc4cd Infrastructure for lazy istream sync in the pmap module:
- Add a bitmask for the CPUs which need an isync before this pmap returns
  to userspace on that CPU.
- Define PMAP_USERRET(), a utility macro for userret() to use to process
  the deferred isync, and call it as appropriate in userret().
2000-03-01 02:22:03 +00:00
thorpej
a192dc9c5b PMAP_ISACTIVE() now takes the cpu_id. This serves two purposes:
- Everywhere it was used, the cpu_id was already computed, so this
  saves computing it again.
- This will be needed for lazy istream sync.
2000-03-01 01:32:45 +00:00
thorpej
64911f1d2e Use cpu_number() here instead of alpha_pal_whami(). 2000-03-01 00:43:34 +00:00
thorpej
fac7fc369f Put machine check info in cpu_info in the multiprocessor case, and
just have one statically allocate machine check info structure in the
single processor config case.
2000-02-29 22:19:53 +00:00
thorpej
04d9239b1e Reset mc_received after we've done a badaddr probe. 2000-02-29 21:42:54 +00:00
simonb
4eb55e447c Do the "<space><tab>" thing with the RAID_AUTOCONFIG option. 2000-02-29 06:32:20 +00:00
mycroft
cf3085176e Nuke all the code associated with the INITIALLY_LEVEL_TRIGGERED() lossage, and
instead register a shutdownhook to restore the PIC state.
2000-02-27 02:50:31 +00:00
mycroft
544ffa4528 Force polling on pcic, so I get another IRQ for cards. 2000-02-27 00:15:30 +00:00
mycroft
76a60b98d3 Install pio.h. 2000-02-26 22:15:40 +00:00
thorpej
198dbed79d Pull in <sys/types.h> for the benefit of those things which include
<machine/sysarch.h> but don't pull in <sys/types.h>.
2000-02-26 20:12:56 +00:00
thorpej
0958e8149a x86-style PIO ops for USERLAND ONLY! Requires -lalpha. 2000-02-26 19:00:51 +00:00
thorpej
df88882d80 - Add a bus space method for getting the translation for a window.
- Add sysarch methods for "get bus window count", "get bus window",
  and "pci conf read/write".

These are a hack, but they're what's necessary in order to make
XFree86 work in its current state.
2000-02-26 18:53:10 +00:00
oster
d9c47013b2 Defopt 'RAID_AUTOCONFIG'. Adding 'options RAID_AUTOCONFIG' turns on
the component auto-detection and auto-configuration of RAID sets.
Also, add "#options RAID_AUTOCONFIG" to the GENERIC config files.
2000-02-26 17:35:33 +00:00
thorpej
0b97eb1052 alpha_pa_access(): if securelevel <= 0, grant read/write access to
non-memory address locations.
2000-02-26 00:17:25 +00:00
mycroft
f8e1e12acc Add Aviator/RayLink. 2000-02-25 20:55:34 +00:00
mycroft
d1546a70bb Add more PCMCIA stuff, nuke PNP. 2000-02-25 20:52:11 +00:00
thorpej
3dacaa322d Protect a few things from userland with _KERNEL. 2000-02-25 01:16:41 +00:00
thorpej
de974ff82d Add an internal bus space method alpha_bus_space_translate(), which
provides a method to translate an address on an I/O bus into a sysBus
address, along with acccess method information.
2000-02-25 00:45:04 +00:00
tls
08ef0cfe07 revert previous change 2000-02-22 21:09:50 +00:00
mjacob
64fa8aa0d6 remove SES driver 2000-02-22 17:43:57 +00:00
thorpej
b0b40b6c34 Make this compile after the netisr_dispatch change. 2000-02-22 15:43:54 +00:00
erh
8f03b9a04a Define the DONETISR macro and use netisr_dispatch.h. This is to cut down on code duplication and to standardize the available NETISRs across all ports. 2000-02-21 20:38:46 +00:00
thorpej
fd8c03cf44 Allow arch-specific code to specify in4_cksum() like it can specify
in_cksum().
2000-02-14 21:42:50 +00:00
thorpej
09943f0ffa G/c references to VM_KMEM_SIZE. 2000-02-12 20:57:12 +00:00
thorpej
dded044fc2 Update for the NKMEMPAGES changes. 2000-02-11 19:25:12 +00:00
mjacob
9621e6be50 Reset maxstray count if we get a good interrupt for a level. 2000-02-10 07:45:43 +00:00
mjacob
13e13336b2 Allow (re)setting of maxstrays after establishment of a shared interrupt.
This allows sporadic stray interrupt counts to be reset by an acknowledgement
of the same interrupt.
2000-02-10 07:45:02 +00:00
mjacob
4821b5ae2f Guard against trying to disable an interrupt where we'd dereference a
bad pointer.
2000-02-10 04:31:36 +00:00
sommerfeld
d129ec5214 Fix typo in error message 2000-02-09 23:25:15 +00:00
shin
7f5a7c00ac fix include file.
<netinet6/ip6.h>	->	<netinet/ip6.h>
2000-02-09 05:48:26 +00:00
thorpej
f9e531f1e4 Don't force BWX on Pyxis by default; it's just not reliable enough. 2000-02-09 01:39:20 +00:00
thorpej
ec02ebc8a0 Adjust for IOASIC register changes. 2000-02-09 00:33:03 +00:00
thorpej
52a2804a5c Add a new function call to the ISA DMA API: isa_dmamaxsize(), which returns
the maximum transfer size for the specified DMA channel.  Make all clients
of ISA DMA use this call to determine their maximum transfer size.
2000-02-07 22:07:27 +00:00
thorpej
fe551f0e64 Fix a bug in disksort_*() which caused non-optimal ordering when multiple
active partitions were on a single spindle.  Add a b_rawblkno member to
struct buf which contains the non-partition-relative block number to sort
by.
2000-02-07 20:16:47 +00:00
thorpej
17c346b9e1 Changed cacheable -> prefetchable. [sync w/ swiz] 2000-02-06 04:07:18 +00:00
elric
28bdaf37d9 Changed cacheable -> prefetchable. 2000-02-06 03:52:27 +00:00