Commit Graph

55568 Commits

Author SHA1 Message Date
briggs
98ec565a96 Catch up with 1.5 branch... Allow nvram device to be omitted from kernel
configuration.  Fix noted by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> and
problme noticed by Louis Guillaume <lguillaume@berklee.edu>.
2002-04-28 17:55:47 +00:00
manu
3568060679 Implements IRIX sproc(2) and friends.
There may be a problem with stack size overflow in this implementation
2002-04-28 17:21:58 +00:00
uch
6d338ff407 Use "#define<tab>", white space nits. 2002-04-28 17:10:32 +00:00
msaitoh
c67dc60a0a add missing postsig() call.
I don't know whether this is true fix or not.
2002-04-28 12:51:14 +00:00
msaitoh
ccc0ee640f add missing softintr_establish() call. 2002-04-28 11:38:48 +00:00
wormey
b487c11bb6 Supply missing "flags" keyword. 2002-04-28 06:19:45 +00:00
enami
88ee31f5b9 Fix the return value of logioctl() for unhandled ioctl; return EPASSTHROUGH
instead of -1.  Fix suggested by Andrew Brown.
2002-04-28 04:13:51 +00:00
thorpej
fe11f8da0b Use MEXTADD() rather than open-coding it. 2002-04-28 01:00:26 +00:00
thorpej
dc12059c9e Use M_READONLY() rathern than testing to see if ext_free is set
or MCLISREFERENCED().
2002-04-28 00:54:41 +00:00
thorpej
143be0a01b Use M_READONLY() rathern than a home-grown M_SHAREDCLUSTER(). 2002-04-28 00:53:34 +00:00
shin
37b76b7ea4 (forgot to commit this file...)
* make kloader optional.
* default value of kernel path is KLOADER_KERNEL_PATH.
* options KLOADER_KERNEL_PATH can override kernel path.
* when bootstr is passed (RB_STRING), use it as kernel path.
2002-04-27 23:24:55 +00:00
enami
9a9bf29bcf A loop to expand file descriptor table and retry is move from fdalloc()
to caller.  So, no longer need to loop in fdalloc().
2002-04-27 21:36:50 +00:00
enami
a58680a4e2 KNF. 2002-04-27 21:31:41 +00:00
shiba
a26fd009c9 Add IDE drive support.
Note:
   (1) Character device major number chages to 49 from 48(in my original
       code). So it is necessary to rebuild device files.
   (2) Must use Booter 2.0.0a10 or later.
   (3) Default mode is cpu busy wait. It is defined by flags 0x1000.
       It will be more slow than before.
       No flags means hardware interrupt mode. But it might be able to
       get no interrupts.

Support machines:
   (1) Quadra 630 series
   (2) PowerBook 150

Non tested machine:
   (1) PowerBook 190 series

Approved by: briggs
2002-04-27 19:29:08 +00:00
bouyer
027861788c Regen: use a u_int32_t in script RAM to pass flags between script and driver. 2002-04-27 18:47:31 +00:00
bouyer
eea7ef4c53 Use a u_int32_t in script RAM instead of the SEM bit in ISTAT to pass flags
between script and driver. This allows more than one flag, and is easier to
manage (we almost can't read/write istat outside of the irq handler).
2002-04-27 18:46:49 +00:00
bouyer
b66175fa2b Regen: implement done command ring. 2002-04-27 17:40:19 +00:00
bouyer
5387f035d3 Implement a ring for the completed commands. This avoid a (problematic only
if error occurs after status is collected) race condition
when using the status byte to detect completed commands (a command descriptor
could be recycled before the device disconnected), and make the
interrupt routine handling completed commands more efficient (no need to
scan target * lun * tag array any more).
2002-04-27 17:39:51 +00:00
ichiro
4e89501466 add CPU ID of IXP1200 network processor 2002-04-27 15:50:59 +00:00
shin
0201440bd2 * make kloader optional.
* default value of kernel path is KLOADER_KERNEL_PATH.
* options KLOADER_KERNEL_PATH can override kernel path.
* when bootstr is passed (RB_STRING), use it as kernel path.
2002-04-27 12:36:47 +00:00
chris
8480bd8390 Correct typo.
Remove tabs, !Edit on Risc OS shows tabs as [09] by default.
2002-04-27 10:48:13 +00:00
tsutsui
d60ade3462 Install bbinfo.h. 2002-04-27 10:20:38 +00:00
tsutsui
9f51b11c37 Use a magic structure with a magic number instead of using nlist(3)
for installboot(8) to patch proto bootblocks.
(This is a preparation to migrate MI installboot.)
2002-04-27 10:19:57 +00:00
enami
064142edd8 Use ETHER_HDR_LEN instead of 14. 2002-04-27 02:38:47 +00:00
thorpej
9054daca3e * Instrument tcp_build_datapkt().
* Remove the code that allocates a cluster if the packet would
  fit in one; it totally defeats doing references to M_EXT mbufs
  in the socket buffer.  This drastically reduces the number of
  data copies in the tcp_output() path for applications which use
  large writes.  Kudos to Matt Thomas for pointing me in the right
  direction.
2002-04-27 01:47:58 +00:00
perseant
76d2795556 Make exported LFSes not panic on the first file create. 2002-04-27 01:00:46 +00:00
thorpej
2ddda24f28 53c1010 chips are ultra3, not ultra2. 2002-04-26 19:44:52 +00:00
thorpej
bfd9280083 Issue a CPWAIT sequence after enabling the MMU to make sure
it's really enabled.
2002-04-26 18:01:21 +00:00
ad
9a25612703 Regen. 2002-04-26 14:21:28 +00:00
ad
fda5e53ba0 Oops, add more IDs used by aac_pci.c. 2002-04-26 14:20:59 +00:00
msaitoh
271b97bb3b add SH4 Processor Version Register 2002-04-26 11:56:02 +00:00
msaitoh
f6bf722a2e fix around PTR and PDR 2002-04-26 10:22:53 +00:00
thorpej
e2a2842013 Keep track of which DMA window was actually used to map the
request (not always the passed in DMA tag if we try direct-map
and then fall back to sgmap-mapped).  Use the actual window
when performing dmamap_sync and dmamap_unload operations.

Fixes DMA resource leak on systems with 2G+ RAM.  Thanks to
Matt Thomas for help debugging this.
2002-04-26 04:15:18 +00:00
enami
6335b88f05 We don't need to re-activate page in genfs_putpages() when GOP_WRITE returns
ENOMEM (temporary memory shortage) since it is already handled in
uvm_aio_aiodone() for both async/sync case.  Discussed with chuq.
2002-04-26 03:57:31 +00:00
ad
77e08f053a Add a driver for Adaptec FSA RAID controllers, as often found in Dell
servers. Based on the FreeBSD/OpenBSD versions.
2002-04-26 02:05:07 +00:00
kleink
07f08f3f5f Convert to use libsa byteorder interfaces. 2002-04-25 23:30:26 +00:00
thorpej
8bd36dc909 Make a comment describe what the code actually does. 2002-04-25 23:23:23 +00:00
thorpej
6b4a2676fd Give gzboot a 1M heap, so that loading gzip -9'd kernels works
reliably.
2002-04-25 22:30:38 +00:00
thorpej
248e944701 Allow the size of the heap to be specified at build time. 2002-04-25 22:11:51 +00:00
nonaka
695f28419c remove show CPU & L2 cache info routine. 2002-04-25 20:40:16 +00:00
nonaka
93dfb931be Separate consinit. 2002-04-25 20:36:50 +00:00
msaitoh
0465d9b191 add missing SCPDR_SCP0DT definition 2002-04-25 20:17:04 +00:00
nonaka
f969157ab1 Use powerpc/mpc6xx/genassym.cf 2002-04-25 20:07:39 +00:00
bouyer
4b307fe0af It's not safe to access the SCNTL1 register while the SCRIPT is running.
On the 1010 this can wedge the chip. So abort the script instead.
the abort interrupt will trigger a bus reset.
2002-04-25 20:05:10 +00:00
nonaka
bd48cc822b Added PPCDIR 2002-04-25 19:47:52 +00:00
bouyer
916ef37c06 Regen: 2 DSA entry per lun, load SCRATCHC before select, avoid race condition
when setting f_cmd_free.
2002-04-25 19:35:07 +00:00
bouyer
f66f6c27a6 - We can't share the per-lun DSA entry for untagged and tag table DSA;
there may be tagged commands still running when we queue a request sense
  command.
  Solve this by using 2 DSA entry per LUN
- Now that we have the command DSA before select, we can load T/L/Q in
  SCRATCHC. This makes the selection timeout handler simpler.
- Avoid a race condition when setting the free flag in the cmd ring (see
  comment in the script)
- don't forget to update the ID in the head of LUN table after a sync/wide
  negotiation. This fixes the command timeout at the first data command
  after negotiation (the bus reset handler did update the ID properly,
  so subsequent commands were OK).
- for DMA interrupts, clear fifo if it's not empty. Leaving the fifo dirty
  would prevent subsequent interrupts from coming in.
- Various improvements in debug messages
- misc cleanups.
2002-04-25 19:34:02 +00:00
matt
f53d9a4fa7 Use BAT1 to map the primary I/O segment at 0x80000000 so we don't have to
bat-flip for those accesses.
2002-04-25 19:32:59 +00:00
ad
4a46e19dcf Set xs->error = XS_SENSE in the appropriate spot. 2002-04-25 18:45:35 +00:00
uch
4d7b6d37d1 switch to NEW_TOOLCHAIN 2002-04-25 17:01:47 +00:00
wiz
7ef7b3071d Another options<TAB> -> options<SP><TAB>, noted by Patrick Welche. 2002-04-25 15:22:44 +00:00
wiz
8a46d7046a Replace some more options<TAB> with options<SP><TAB>.
Noted by Patrick Welche.
2002-04-25 15:21:59 +00:00
atatat
d1b3852365 Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
2002-04-25 15:06:20 +00:00
briggs
9fd5e995b2 Add makeoptions PPCDIR. 2002-04-25 15:03:26 +00:00
briggs
50d078343a Use powerpc generic genassym.cf 2002-04-25 15:02:54 +00:00
aymeric
90d26c8828 o replace definitions by declarations in header files
o put definitions where due
o cleanup some types  (u_int -> vaddr_t's for example)
o minor other cleanup
2002-04-25 09:20:25 +00:00
simonb
fa61e6cd3b In the LOCKDEBUG case, call exit2() before sched_lock_idle() so
that the exitting process pointer in a0 doesn't get overwritten by
sched_lock_idle().
2002-04-25 06:55:53 +00:00
briggs
3d46ca0e98 XSCALE_CCLKCFG should not be set in std.iq80310. Set IQ80310 to use
XSCALE_CCLKCFG=9 (733MHz) and TEAMASA_NPWR to use XSCALE_CCLKCFG=7 (600MHz)
as that's what the part on the board is rated for.
2002-04-25 01:50:00 +00:00
thorpej
1ca5e360be Use LOADADDR() where appropriate. 2002-04-25 01:48:21 +00:00
briggs
24bc04a204 80321 doesn't have a CCLKCFG register. 2002-04-25 01:47:56 +00:00
thorpej
48774f52db Add iq80321.c 2002-04-25 01:47:54 +00:00
thorpej
509fd84067 Add iq80310.c 2002-04-25 01:47:41 +00:00
kleink
8f5a689d48 Attach joy* at eso?. 2002-04-25 00:54:54 +00:00
kleink
22e2d71a5f Add a joystick attachment to the ESS Solo-1 driver. 2002-04-25 00:52:21 +00:00
kleink
af131f109a Add an `aux' audio device sub-type, to be used to attach parent
device-specific children to an audio device; per discussion with
Lennart Augustsson.
2002-04-25 00:50:39 +00:00
eeh
dcb399fc7c Don't need to flush the d$ for MMU bypass accesses. 2002-04-24 23:54:24 +00:00
thorpej
643663fa93 Go back to siop; esiop isn't fully baked yet. 2002-04-24 20:38:24 +00:00
bjh21
a533ffac94 Add a configuration for an installation ramdisk kernel. 2002-04-24 19:50:25 +00:00
bjh21
f47cb92e18 audio -> audiobus rename. 2002-04-24 17:52:48 +00:00
thorpej
fda6669861 Use esiop. 2002-04-24 17:45:55 +00:00
thorpej
2c0a144aa4 * pmap_clean_page(): Clean up a comment.
* pmap_protect(): write back the range when doing a r/w -> r/o
  transition.  (Still leave the block concerned with this in
  pmap_clean_page() disabled, for now.)
* pmap_pte_init_xscale(): Disable read/write-allocate for now, until
  we figure out why sometimes cache lines of NULs get deposited into
  file data.  Also, make sure ECC protection of page table access is
  disabled for now.
* xscale_setup_minidata(): Make sure the mini-data cache is configured
  write-back with read/write-allocate.
2002-04-24 17:35:10 +00:00
ross
f98b9b43e8 Add strtoul.c 2002-04-24 16:56:36 +00:00
christos
ce8e03cd9f Avoid file use underflow; thanks to YAMAMOTO Takashi for noticing. 2002-04-24 16:09:24 +00:00
bjh21
b53b7e5cd5 Include <stdint.h> or <sys/stdint.h> to get the C99 fixed-width types, since
<sys/types.h> doesn't necessarily provide them.
2002-04-24 15:29:45 +00:00
ad
b9e7e28ff4 Match anything with PCI_VENDOR_VORTEX, then use a heuristic to determine the
board's interface, and list only exceptions in icp_pci_ident[].
2002-04-24 15:08:48 +00:00
aymeric
e4f7fab661 OPTi changes:
o keep WDC_CAPABILITY_DATA32 regardless of the version of the chip.
o correct typo to disable DMA correctly
2002-04-24 13:49:34 +00:00
kleink
a5a0fd620b Add ex(4). 2002-04-24 09:46:15 +00:00
bouyer
d59eabe0a9 Regen: get rid or ID in scheduler slot, to save RAM. 2002-04-24 09:44:12 +00:00
bouyer
b46922a07a For a new command, use the id in the command table and get rid of the ID in the
scheduler slot. This costs a few more instructions but divide the size of the
scheduler ring by 2, saving 1k of onboard RAM (a bus with 15 devices would
overflow the on-board RAM by 128 bytes).
2002-04-24 09:43:14 +00:00
lukem
2c1cfc8e8c - in <bsd.files.mk>, don't clear FILES after using it, as that prevents
make -V FILES
  from being useful (and given that every other variable can be
  extracted using make -V, the behaviour was unusually inconsistent
  given that the original reason for clearing it doesn't seem to be
  relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
  (and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
2002-04-24 08:18:45 +00:00
bouyer
c0cb853db0 Regen: bump the number of slots in the cmd ring to 256. 2002-04-24 08:00:55 +00:00
bouyer
e73a1efbd9 Bump the number of slots in the command ring to 256. 2002-04-24 08:00:08 +00:00
lukem
86caccc77b convert from "bbinfo.h" to <dev/sun/sun_boot.h> 2002-04-24 01:40:25 +00:00
lukem
dcb3421026 Add <dev/sun/sun_boot.h>, which contains common boot block stuff for
Sun based systems.
2002-04-24 01:33:55 +00:00
bouyer
cd3578d7ef More copyright fixes, pointed out by Thomas. Thanks ! 2002-04-23 20:41:13 +00:00
bouyer
4c8f4b94f8 Fix copyrigth. 2002-04-23 20:12:39 +00:00
bouyer
c7454ad973 - factor out parts of (e)siop_attach() to siop_common_attach()
- Add support for DT transfers (aka Ultra/160) in esiop

Note that DT transfers are not enabled for 53c1010-33 rev 0 yet; if I trust
FreeBSD it has a bug which prevent them to do DT properly.
From the same source there may be issues with some revs of 53c1010-66.
2002-04-23 17:33:27 +00:00
bouyer
15c40f8b5b The IBM drive I have here supports DT, but claim version 3 only.
So check for version 3, not 4 when looking for DT support.
This should be safe as these bits are reserved for older devices, they
should be set to 0 when not supported.
2002-04-23 17:28:43 +00:00
christos
7ad1c0f407 Don't forget to set mature and unuse the file. 2002-04-23 17:20:58 +00:00
kleink
3626919f4c Oops, swapped mtsrin operands in previous. 2002-04-23 17:14:45 +00:00
tv
7da1186e67 Use ${INSTALL_FILE} to move /boot.atari into place so it is seen by an
UNPRIVED build.
2002-04-23 17:04:31 +00:00
christos
1261c89715 From OpenBSD, via FreeBSD: If a set{u,g}id binary is invoked with fd < 3
closed, open those fds to /dev/null.

XXX: This needs to be fixed in a better way. The kernel should not need to
know about /dev/null or special case 0, 1, 2.
2002-04-23 15:11:25 +00:00
uch
14fff32a83 remove duplicated SH3, SH4 define. 2002-04-23 13:59:03 +00:00
hannken
94a48c8c9f Remove the cyrillic keysyms. This was not done the right way.
Will come back after 1.6 has branched.

Approved by: Matthias Drochner <drochner@netbsd.org>
2002-04-23 13:42:46 +00:00
bouyer
25d4f402ce Regen: bump message size to 16 octets. 2002-04-23 12:56:01 +00:00
bouyer
6d37782a49 Bump the space for SCSI messages from 8 to 16 octets, as 8 may not be
enouth for IDENTIFY + TAG + PPR.
Get rid of constants in C code by use of a offsetof macro.
2002-04-23 12:55:26 +00:00
kleink
3a03930d13 Add a third argument to pmap_bootstrap() which platform-specific
initialization can use to specify additional segment registers to be set
up in the kernel pmap.
2002-04-23 12:41:04 +00:00
ad
ea92353d58 MLX_GET_SYSDRIVE expects the unit number returned in *arg. Should fix PR
14116.
2002-04-23 11:57:45 +00:00
bouyer
cf06149dac Enable software LED control based on LED0 feature, not #define.
For now, set the LED0 feature if SIOP_SYMLED is defined in siop_pci_common.c.
From Jason R Thorpe.
2002-04-23 10:38:37 +00:00
bouyer
71103278cf Set SF_CHIP_LEDC for chips that support it. Based on patch sent in private
mail by Jason R Thorpe.
2002-04-23 10:11:39 +00:00
bouyer
b6fee4019d Add some new features:
- SF_BUS_ULTRA3, for Ultra/3 (80Mhz) busses
- SF_CHIP_LEDC,  led on GPIO0 with hardware control
- SF_CHIP_DT, support DT clocking.
2002-04-23 10:06:44 +00:00
bouyer
d77c3b3d84 Add the Parallel Protocol Request message. 2002-04-23 09:46:51 +00:00
ragge
b0fa7eb2c1 Someone had a braino here; IP_TTL != IPDEFTTL. This caused the standalone
udp traffic to only have a ttl of 4.
Found by Jens Nilsson, jens@rockstorm.se.
2002-04-23 09:16:09 +00:00
bouyer
e49057af19 Report SPC-2 features (DT clocking, quick arbitration and selection,
information unit transfers) though periph_cap.
2002-04-23 09:09:55 +00:00
pk
ebe575d3ca BUS_ADDR(): avoid signed conversions. 2002-04-23 07:17:29 +00:00
manu
c7dcec33a1 Added IRIX /dev/usema and dev/usemaclone (void driver for now, will be
filled later)
2002-04-23 06:48:46 +00:00
augustss
0405958cec Check for write permission for some ioctls. 2002-04-23 06:34:11 +00:00
manu
ee5b3b3977 Added a void IRIX /dev/usema and /dev/usemaclone pseudodevice driver.
IRIX uses this for implementing atomics operation on semaphores

This will be filled later.
2002-04-23 05:51:14 +00:00
manu
f599dce291 Added fchdir, fchown and fchmod system calls 2002-04-23 05:47:38 +00:00
kleink
0b463cc8f9 Express tempsave and disisave addresses using the symbolic names of the
exception handlers which they are `borrowed' from.
2002-04-22 23:20:08 +00:00
fredette
5c3869c64c Removed the old installboot, we now use the new /usr/sbin/installboot.
Now install a raw binary version of bootxx, since that's what this
new installboot expects.
2002-04-22 21:15:40 +00:00
fredette
3b190a12d6 To make things build correctly, rely totally .PATH and never
have source files be explicit paths.
2002-04-22 21:13:34 +00:00
ad
9a09578e25 Add a driver for ICP-Vortex GDT and Intel Storage RAID controllers. Parts
taken from OpenBSD. Test hardware kindly provided by Intel. This still needs
management bits, and doesn't support older controllers, but that shouldn't
be hard to fix.
2002-04-22 21:05:19 +00:00
bouyer
84b0f1e37d Adapt for script "wait MSG_OUT after select" change: now, when we get
selection timeout, SCRATCHE points to the slot which triggered the timeout,
not the next one.
2002-04-22 20:47:20 +00:00
bouyer
dbe8f22921 Regen: block on wait MSG_OUT after a SELECT. 2002-04-22 20:45:59 +00:00
bouyer
5242b16c65 It seems that the script processor continue to exec a few intructions
after the selection timeout is posted but the number executed isn't
reliable. So wait for MSG_OUT rigth after the select so that the state of
the script when the interruption is handled is known.
2002-04-22 20:45:27 +00:00
bouyer
8ba368a0b6 Really, don't set siop_cmd->tag in setup_table() 2002-04-22 20:31:49 +00:00
matt
fd0e30f1c5 Let's not free an uninitialized variable. 2002-04-22 19:29:55 +00:00
uch
d1b9873090 make these compile with gcc -O0 2002-04-22 18:57:43 +00:00
kleink
0b82377f11 Fix a swapped register pasto(?) introduced in rev. 1.17. 2002-04-22 18:31:11 +00:00
bouyer
b5c850f201 Regen: tagged queuing support, and led on/off fragments. 2002-04-22 15:55:37 +00:00
bouyer
9080ea0aa3 Add the led_on/led_off script fragments. 2002-04-22 15:55:09 +00:00
bouyer
4cda08fb6e Add support for tagged queuing to esiop (256 tags per device).
For this add another indirecton: the DSA in the LUN table points to
a table of DSA indexed by the tag number when tagged command is in use.
For non tagged command, the LUN DSA still points to the tables describing the
xfer directly.
2002-04-22 15:53:39 +00:00
bouyer
e3f96dde51 Fix last change: assign siop_cmd->tag in callers instead of siop_setuptables(),
and use siop_cmd->tag instead of xs->xs_tag_id. This way siop can use
xs->xs_tag_id + 1 without interferences with esiop.
2002-04-22 15:48:55 +00:00
bouyer
458fca4e6a Add esiop at pci. 2002-04-22 15:45:19 +00:00
ad
034f7b1db1 Name the thread after the device. 2002-04-22 15:16:56 +00:00
augustss
a3343212c3 Add spic. 2002-04-22 13:03:06 +00:00
augustss
93e745b84c Another disk quirk. 2002-04-22 12:48:40 +00:00
augustss
0545947a9e Add spic. 2002-04-22 12:43:50 +00:00
augustss
5b899ef99d Attach the spic driver via ACPI. 2002-04-22 12:42:56 +00:00
augustss
d32b5e84cc Add a driver for the Sony SPIC that handles jog dials etc.
This driver works on my SRX77, but probably little else.
It makes the jog dial appear as a wsmouse.
2002-04-22 12:42:11 +00:00
wiz
6a32f7f6a3 Move psm.c and psmreg.h to pms.c and pmsreg.h, since they contain the
pms (not psm) driver.
Fix a debugging message to print the correct function name.

Approved by Christos.
2002-04-22 10:44:46 +00:00
bouyer
72906f4578 In siop_setuptables(), use the proposed tag_id, not tag_id +1.
In siop.c bump siop_cmd->tag by one as tag id 0 is reserved for untagged cmds.
2002-04-22 09:43:44 +00:00
augustss
7f7ab48604 Rename the audio "bus" attribute audiobus to avoid confusion with audio
device.
2002-04-22 09:41:19 +00:00
msaitoh
3e139496d2 remove unused option 2002-04-22 08:24:02 +00:00
gmcgarry
e99aada22c Bump ramdisk size. 2002-04-22 06:10:16 +00:00
manu
0e9a3e0d43 - We now use irix_sys_mmap instead of svr4_sys_mmap
- initial support for MAP_AUTOGROW flag. When mapping beyond the end of file is
requested with MAP_AUTOGROW, if pages beyond the end of file are touched, the
file should be resized. We are not able to emulate this yet, so we immediatly
resize the file to fit the whole mapping.
- implements mmap64
2002-04-22 05:58:46 +00:00
msaitoh
9121727bf6 increase _INTR_N from 7 to 11 (count both SCI and SCIF) 2002-04-22 02:05:33 +00:00
bouyer
2f72a4fcc7 Generated from esiop.ss, for the new esiop driver. 2002-04-21 22:53:37 +00:00
bouyer
8cfc41f9ed First cut at a esiop driver (enhanced siop). Doesn't implement tagged queuing
yet.
If is restricted to SIOP which implement the load/store instruction, and
has 10 scratch registers (basically, 825 and newer, possibly 770).
It implements a different interface between host and script, using a real
ring for command starts, and improved support for reconnect which will allow
256 tag per device. It uses interrupt on the fly to signal complete command,
which allows several commands to be serviced per interrupt and doesn't require
the script to stop to signal command completion.
2002-04-21 22:52:05 +00:00
bouyer
4b8e2f7002 - handle INTFLY (interrupt on the fly) command
- hanlde set/clear carry
- handle shl, shr (shift left and rigth) and xor operators
2002-04-21 22:40:10 +00:00
kleink
884898e332 Convert the spill stack frame to use symbolic offset names; inspired by
a conversation with Matt Thomas.
2002-04-21 22:05:45 +00:00
ragge
2d53738484 Cast some args to unsigned long (used with pointers). 2002-04-21 21:00:29 +00:00
ragge
f2996b0e79 Add dkbad, from 4.4. 2002-04-21 20:56:33 +00:00
ragge
bc27ff6af0 Keep the isbad() prototype here where it belongs, instead of random places. 2002-04-21 20:55:48 +00:00
manu
4678e0b326 Fixed functions to get the number of CPU in sysmp() and systeminfo(). The
problam was that when hw_sysctl() is used, the result is supposed to be
in userland
2002-04-20 21:25:01 +00:00
bouyer
a8ac9f8638 Fix scratchd2 address. 2002-04-20 20:56:25 +00:00
manu
ded3c31a9c On IRIX, fcntl F_FREESP, F_ALLOCSP, F_FREESP64 and F_ALLOCSP64 commands
ignore the len argument. We now correctly emulate the behavior of these
commands.
2002-04-20 20:38:21 +00:00
thorpej
c3050006aa * Defflag the SH3 and SH4 options.
* In <sh3/cputypes.h>, always define both SH3 and SH4 if _LKM is defined.
2002-04-20 19:59:11 +00:00
kent
4cbdc3964d uaudio_set_params():
Correct a parameter of uaudio_chan_init() for recording.
  This change fixes kern/16385.
2002-04-20 17:36:16 +00:00
kent
e034d9364c Clear the busy flag of an alt when a channel is closed. 2002-04-20 17:04:32 +00:00
manu
e67d46d7af Added one more system call: msync 2002-04-20 16:56:28 +00:00
manu
21d2265eea Fixed mistakes in irix_sys_fcntl() (missing breaks in case statement) 2002-04-20 16:20:12 +00:00
manu
d5ed80d9c6 The IRIX usinit(3) function expects a page of memory to be available at
address 0x200000 (disasembling usinit shows that this address is hardcoded in
libc). It uses it for locks and semaphres.

We therefore allocate this page of memory, to prevent IRIX process from
faulting when thay call usinit(3).
2002-04-20 16:19:22 +00:00
bouyer
0852b37f15 Note that if siop_common_xfer is changed, the scripts need to be changed too. 2002-04-20 15:25:53 +00:00
manu
1f32c2b1c4 One more unsupported feature: SGI_SATCTL 2002-04-20 07:43:35 +00:00
manu
829bfed008 Added missing irix_misc.c 2002-04-20 07:42:32 +00:00
simonb
b0b78e1e37 Fix a white-space nit. 2002-04-20 06:04:35 +00:00
mjacob
acfd588eca Number of luns supported for SCC-2 is actually really 16384- top
3 bits are lun address modifiers.

Remove code that (incorrectly) thought it was asking the f/w to only
PLOGI if not already PLOGI'd. The current f/w documentation tells us
that we have this backwards.
2002-04-20 05:05:56 +00:00
bouyer
97fe8b91c5 Move a few things around, so that ic/siop_common.c and pci/siop_pci_common.c
can be compiled without including siopvar.h.
2002-04-20 00:15:54 +00:00
kleink
a641861ab8 Rig pmap_print_mmuregs() for the 601. 2002-04-19 20:56:56 +00:00
heinz
47141ed0bf Add missing CVS tag 2002-04-19 16:43:38 +00:00
heinz
9f8fa51b2d Removed the files after renaming to kf_iso8859_1_* (in agreement with
is@netbsd.org).
2002-04-19 16:38:13 +00:00
heinz
3c56e1f6a3 Add options for console fonts 2002-04-19 16:30:27 +00:00
heinz
691273a308 Add options for iso8859-1 and -2 kernel fonts and change the file selection
for kernel fonts (in agreement with is@netbsd.org)
2002-04-19 16:29:17 +00:00
heinz
34da823975 regen after GENERIC v1.178 2002-04-19 16:14:01 +00:00
heinz
deadec2d40 Add options for console fonts 2002-04-19 16:11:26 +00:00
drochner
9c80231f6b check interrupt status of the PCI interface chip (if possible)
before calling the (slow) isic handler
being here, remove #ifdefs for FreeBSD and old version support
and add RCS ID tags
2002-04-19 10:55:46 +00:00
gmcgarry
68388660cf Set ndrq to zero if no drq is specified. 2002-04-19 05:27:04 +00:00
wiz
bc768c8abb Remove unneeded cdev_decl(pms). 2002-04-19 02:15:59 +00:00
wiz
440337fdce Remove (commented out) pms cdev_decl. 2002-04-19 02:12:00 +00:00
wiz
8aedc259f8 Don't cdev_decl(pms). 2002-04-19 02:10:17 +00:00
wiz
b430d917cf Complete renaming of opms to opms (was mostly pms internally).
Mechanical change, tested by cross-compiling GENERIC from i386.

Approved by christos.
2002-04-19 01:43:48 +00:00
simonb
f09098b78b Add a newline to a debug printf. 2002-04-19 01:14:17 +00:00
wiz
d79f4782b6 Complete renaming of opms to opms (was partly named pms, externally and
internally).  Move arm/iomd/pms* to arm/iomd/opms*. Mechanical change,
tested by cross-compiling a kernel from i386.

Approved by christos.

XXX: What are arm/arm32/conf.c and arm/include/conf.h good for?
2002-04-19 01:04:38 +00:00
gehenna
7fdc59f9fc Regen 2002-04-19 00:55:31 +00:00
matt
79b1afa490 Change test for M_EXT to M_READONLY for MROUTING. We only need to to do
a pullup if we aren't allowed to modify the packet.
2002-04-18 22:33:21 +00:00
thorpej
46a2773ba8 * Fix the CS_IS_ENABLED() logic so that it actually evaluates to
"true" at the appropriate times for non-PCMCIA interfaces.  This
  means that the ENETRESET path in cs_ioctl() now runs, thus fixing
  multicast (and IPv6) on my Shark.  Yay.

* Simplify cs_hash_index(): Rather than taking the bottom 6 bits of
  a big-endian CRC32 and reversing them, just take the top 6 bits of
  a little-endian CRC32.
2002-04-18 21:58:02 +00:00
kleink
99d4b7c71f Unused; already implemented in libkern. 2002-04-18 21:42:36 +00:00
thorpej
036066e625 Define the Symbios Logic and Tekram NVRAM contents. 2002-04-18 21:08:43 +00:00
thorpej
c685b2c67a Regen: Added Symbios 53c875A product ID. 2002-04-18 20:36:30 +00:00
thorpej
cdd30a00ba Add Symbios 53c875A product ID. 2002-04-18 20:35:39 +00:00
leo
1913310c9e Handle uninitialize warning. 2002-04-18 20:12:01 +00:00
matt
66c475ca19 Use a common genassym.cf for all the PPC_MPC6XX ports. Add a makeoptions to
std.foo to indicate the directory to get genassym.cf from.  Add an intrframe
to <powerpc/frame.h> and make trap_subr.S use symbolic offsets into it.
2002-04-18 20:08:05 +00:00
kleink
de339ffb8a Alpha-sort/cosmetics. 2002-04-18 19:48:41 +00:00
tshiozak
eb4e540b0e add PCI/USB vendor ID for Kurusugawa Electronics, Inc.
PCI-ID: 0x6809, USB-ID: 0x0b7e.
2002-04-18 17:40:56 +00:00
eeh
c54358008e Remove unused file. 2002-04-18 17:24:09 +00:00
eeh
4acff51bdc Cleanup a bit and get rid of unnecessary cache flushes. 2002-04-18 17:19:12 +00:00
eeh
55bcc7df8b Don't include cpuvar.h. 2002-04-18 16:37:26 +00:00
eeh
bb8f4cc510 Calculate NBPG from PGSHFT. 2002-04-18 16:31:47 +00:00
wiz
95bc0b09e2 Remove opms(4) for bebox (superseded by pms(4)).
Approved by christos.
2002-04-18 15:44:20 +00:00
bouyer
ca16b3dee1 Add libsa's files.c to list of sources, so that files[] exists. 2002-04-18 15:39:02 +00:00
martin
379eadc41a Duh, 0 bits enable interrupts in the IPAC!
So to disable them all better use 0xff instead of 0x00 as mask. Noted
by Matthias Drochner.

Move some initialization unrelated to interrupts back to its place at
attach time.
2002-04-18 15:32:30 +00:00
tsutsui
e5c1c88d93 Add version strings by newvers_stand.sh to secondary boot. 2002-04-18 14:54:38 +00:00
briggs
29e436c9e8 Enable new option SIOP_SYMLED 2002-04-18 14:32:57 +00:00
ad
49afc8d8b9 This file no longer used. 2002-04-18 13:41:35 +00:00
wiz
13ad4ddfa4 Remove duplicate lines. 2002-04-18 13:27:00 +00:00
wiz
dedd141239 Split opms@arm32 in opms@acorn32 and opms@shark. 2002-04-18 13:21:06 +00:00
wiz
5b79e27a96 This port never even had opms -- remove line referencing it. 2002-04-18 13:18:29 +00:00
wiz
5bcf16a588 -opms(i386) 2002-04-18 13:10:06 +00:00
wiz
c6dc851f64 Remove opms(4) and its device, /dev/pms0, from the i386 port, because
it has been obsoleted by pms(4).

Reviewed by fvdl and christos.
2002-04-18 12:54:09 +00:00
kleink
eb225418ed Don't do random replacement in isitrap601; just like isitrap. 2002-04-18 12:33:26 +00:00
martin
ff434a1201 Handle unexpected interrupts better. 2002-04-18 12:19:05 +00:00
bouyer
618e11b77d Add (commented out) options SIOP_SYMLED 2002-04-18 12:06:11 +00:00
bouyer
1d7af0f55e defflag SIOP_SYMLED. 2002-04-18 12:04:05 +00:00
bouyer
52cdca5f88 If SIOP_SYMLED is defined, drive the activity LED though GPIO pin 1. 2002-04-18 12:03:15 +00:00
bouyer
7341a66098 Regen: add hooks to drive LED via GPIO. 2002-04-18 11:59:41 +00:00
bouyer
172d73c2d5 Add hooks to drive the activity led via the GPIO pin 1, as required by some
tekram and symbios adapters.
2002-04-18 11:56:11 +00:00
thorpej
0f3cb4bcae Add a standalone routine for fetching the memory size from the
core module on an ARM Integrator board.
2002-04-18 05:30:45 +00:00
onoe
86920876dd (force commit: no changes in the code)
WI_RID_SCAN_APS in previous commit works for Intel Pro/Wirelss 2011
with firmware 2.51.1.
It seems that the firmware automatically updated after the card runs on
Windows 2000 with 2011_2011B_CD_3.0 in Intel web site.
2002-04-18 05:24:28 +00:00
augustss
2f34976283 Regen. 2002-04-18 03:49:17 +00:00
augustss
544654cbc3 nother device. 2002-04-18 03:48:53 +00:00
gmcgarry
36adeea7c2 Don't frob MCR_IEN bit if on a 425e. Problem initially reported
by Christoph Badura:

It looks to me like the 425e uses reverse polarity of the MCR_IEN bit with
respect to the other 4xx models.  That could be because it doesn't have
an inverter wired behind the IEN(OUT2) output of the UART.

Fix is inspired by change in OpenBSD.  Serial console input is
confirmed working on 425e by Thilo Manske.
2002-04-17 23:31:24 +00:00
hubertf
0ee29be147 add appropriate description 2002-04-17 23:23:49 +00:00
bouyer
6b14001ff6 Really use a JUMP for NOP, not a block move. 2002-04-17 21:39:14 +00:00
gmcgarry
b3dae2b4b6 Regen: "digital audio" 2002-04-17 20:51:11 +00:00
gmcgarry
c4ab5a6201 typo in previous 2002-04-17 20:50:45 +00:00
gmcgarry
5123c61682 device id 0x13 is "digital audio" as reported by Thilo Manske. 2002-04-17 20:49:06 +00:00
gmcgarry
e25ab469b9 Attach apci console as an intio device, not a dio device.
Fixes console attach on 425e noted by Thilo Manske.
2002-04-17 20:40:30 +00:00
thorpej
a7a582e392 * Call board_init() rather than mem_init() (board_init() will take
care of that for us).
* Call board_fini() right before jumping to the kernel entry point.
2002-04-17 17:38:58 +00:00
thorpej
a400421fe8 Add board_init() and board_fini() routines for IQ80310 and IQ80321
eval boards.
2002-04-17 17:37:52 +00:00
martin
32b8af4ca2 Be carefull not to cause interrupts while /dev/isdn is not open.
Make the LEDs work.
2002-04-17 17:35:29 +00:00
martin
c8b77487a2 When clearing interrupts, clear IPAC interrupts for cards that have
one.
2002-04-17 17:34:48 +00:00
drochner
14a494bc05 return ENXIO if a driver cannot be found 2002-04-17 15:23:47 +00:00
rafal
7a25d8c7ba Add event counter for zs interrupts and attach and use it; also, get the
zs major number out of the cdevsw table rather than hardcoding it in zs.c.
2002-04-17 13:49:54 +00:00
mycroft
f61e8b1c43 Per PR 13668, add tlp at pci. 2002-04-17 11:52:47 +00:00
wiz
2228f81f19 Fix two typos in comments. kern/16386 by Sean Davis. 2002-04-17 09:16:27 +00:00
wiz
b9abd324c6 Fix typo in comment. kern/16382 by Sean Davis. 2002-04-17 09:14:21 +00:00
mycroft
8de6aa0fbc This file is redundant now. 2002-04-17 02:27:14 +00:00
mycroft
a03e2b5e1e Remove TLP_MATCH_* options. 2002-04-17 02:26:48 +00:00
mycroft
558b4fb278 Switch from de to tlp by default. 2002-04-17 02:22:41 +00:00
mycroft
88e968078c Remove TLP_MATCH_* options. 2002-04-17 02:19:13 +00:00
mycroft
332493e8b7 These machines are gone. 2002-04-17 02:04:26 +00:00
heinz
cc1422920f Change name of console fonts kf_8x8.c and kf_8x11.c 2002-04-17 00:59:07 +00:00
heinz
89a0c77ff9 Add East European (iso8859-2) console fonts 2002-04-17 00:52:13 +00:00
heinz
77a6abbbed Renamed kf_8x8.c and kf_8x11.c to kf_iso8859_1_8x8.c and kf_iso8859_1_8x11.c 2002-04-17 00:51:05 +00:00
thorpej
e1f3e69604 * Move the mii_bitbang attribute into dev/mii/files.mii
* Pull in dev/mii/files.mii from conf/files, rather than playing
  the magic "files include order" dance in N machine-dependent
  configuration definitions.
2002-04-17 00:35:04 +00:00
thorpej
37dc008ca3 Cleanup how file system configuration information is declared, grouping
related information together, with the file system code itself.

This is just low-hanging fruit -- more to come.
2002-04-16 23:14:05 +00:00
eeh
8c0f10ff03 Add icache_flus_page() to go with dcache_flush_page(). 2002-04-16 23:13:13 +00:00
eeh
690711542d We want pages modulo 16K not modulo 32K. 2002-04-16 23:11:20 +00:00
eeh
cd1c5cd9c5 Make lots of routines profile-friendly and get rid of some cruft. 2002-04-16 23:09:37 +00:00
bjh21
12282dd258 Regen. Remove pppoe from FALCON kernels. 2002-04-16 22:44:26 +00:00
bjh21
0884ac3b9e Don't include pppoe in FALCON kernels, since they don't include any Ethernet
devices.
2002-04-16 22:42:55 +00:00
thorpej
4762adb809 Move ALTQ configuration definitions into altq/files.altq 2002-04-16 21:27:13 +00:00
thorpej
20ddfbf4c1 Move sysmon configuration definitions to dev/sysmon/files.sysmon. 2002-04-16 21:00:27 +00:00
thorpej
eedd94475c * Move the mii_bitbang attribute into dev/mii/files.mii
* Pull in dev/mii/files.mii from conf/files, rather than playing
  the magic "files include order" dance in N machine-dependent
  configuration definitions.
2002-04-16 20:50:16 +00:00
thorpej
bbb03955e8 Centralize the RAIDframe config definitions. 2002-04-16 20:33:00 +00:00
manu
5261d673c9 Added getpgrp/setpgrp.
setpgrp is stolen from compat/sunos. It should probbaly be moved to
/compat/common
2002-04-16 20:15:47 +00:00
manu
08948f97d1 Added sysconf(SC_IP_SECOPTS) 2002-04-16 20:15:03 +00:00
thorpej
f23ba7637c Add Application Accelerator Unit registers. 2002-04-16 17:36:06 +00:00