Commit Graph

46878 Commits

Author SHA1 Message Date
lukem 37aedd067b delint: fix comments 2001-05-15 15:20:29 +00:00
lukem 103a49d158 delint: don't try & return something from void eisa_intr_disestablish() 2001-05-15 15:07:37 +00:00
lukem e3134697e1 delint: remove comments from macro args; confuses cpp/lint 2001-05-15 15:06:23 +00:00
lukem 09ba301f07 delint: () protect some macro args 2001-05-15 15:00:04 +00:00
lukem 9bef152bd7 delint: need ; between case label and } 2001-05-15 14:57:49 +00:00
lukem 33e8c1a04f delint: don't try & return something from void pci_intr_disestablish() 2001-05-15 14:48:57 +00:00
lukem 0b6a1eb95a delint: () protect some macro args 2001-05-15 14:37:36 +00:00
lukem d3e16de232 delint: need ; between goto label and } 2001-05-15 14:30:24 +00:00
tsutsui 8f3dc26a16 Don't forget to set dma_count register in picaDmaStart().
XXX fd still does not work. (no longer hangs, but causes data_overrun)
2001-05-15 14:29:17 +00:00
leo 68f5fe6e81 Split pci_machdep into a generic/hades/milan part. There is much difference
in configspace and interrupt handling.
2001-05-15 14:14:48 +00:00
lukem b6b83e2ec3 delint; use MAX(sizeof(..),sizeof(..)) instead of max(...) for array size 2001-05-15 14:03:27 +00:00
leo 3ac9086605 Add an NMI handler for the Milan. 2001-05-15 13:57:43 +00:00
lukem 13a9902fc6 delint: can't have an empty case item at the end of a switch; need a ; at least 2001-05-15 13:53:20 +00:00
leo 4a1227bb56 Add some Milan support functions:
- Low level isa interrupt handler
  - NMI fault handler - catches PLX access errors
  - PCI configspace read/write functions
2001-05-15 13:49:56 +00:00
leo 6d7aa9b12e Enable NMI for Milan. It is used for signalling PLX faults. 2001-05-15 13:46:23 +00:00
ad ae0203ee27 Correct arguments to bus_dmamap_create(), and add a reset routine for the v3
interface.
2001-05-15 12:49:37 +00:00
ichiro 0071e88a8c fixed mistake.
major version and minor version were made reverse.
2001-05-15 11:45:50 +00:00
minoura 4bff72882b Missings from the previous commit.
From Izaki-san.
2001-05-15 09:10:05 +00:00
ichiro 08d33f4cc0 Fix indentation in recent commit. 2001-05-15 09:06:15 +00:00
ross 91646d1aa5 Eliminate lhs cast (incorrectly accepted by gcc) 2001-05-15 09:04:00 +00:00
ichiro 4afb07bd12 getting prism2 firm ver routine to wi_get_id().
if firm ver is more than 0.8c3, promiscuous mode is off.

typo WI_RID_STA_IDENEITY -> WI_RID_STA_IDENTITY
2001-05-15 09:01:27 +00:00
msaitoh 9ae59f3041 convert two consecutive "shll"s with one "shll2" 2001-05-15 08:54:56 +00:00
jmc 0aae41bf84 Clean up comment about unregistering callbacks 2001-05-15 06:54:07 +00:00
jmc c3967bca55 Various small changes.
Clean up one bug in a DPRINTF in arrs_input which could panic on some packets.
Gut the ack/response functionality and clean it up so all packets get checked
correctly and the abuf struct isn't used once the ab_cb has happened (there
still could be ack packets waiting to be processed at that time).
Finally, add some documentation explaining read/write/inreg and their
purpose/argument calling.
2001-05-15 06:52:30 +00:00
jmc d91da495a9 Back out last change until I get fwohci rototilled better for checking the ack bits. Makes things compile again. 2001-05-15 06:30:30 +00:00
nisimura 96398342f4 Rather better to have |= to make sure spl0 condition, allowing to preserve
processor model specific SR bit pattern on pcb0 initialization.
2001-05-15 06:01:23 +00:00
ichiro caa399b739 WEP cannot be used when Prism2 Firm version is lower than 0.8.3.
Although WEP is used in Windows also in an old firm,
because WEP is processed by the windows driver side.
If Prism2 Firm version is more than 0.8.3, WEP does work without 'Promiscuous ON'.
2001-05-15 04:27:22 +00:00
kanaoka 4d4231d0e9 Add support for "Corega FEther CB-TXD".
kern/12709: from Yamashiro Jun <j99060@ie.u-ryukyu.ac.jp>.
2001-05-15 04:26:23 +00:00
kanaoka b003ab3d9c Regen. 2001-05-15 04:25:12 +00:00
kanaoka 0f5babc5cb Add product "Corega FEther CB-TXD". Modified from kern/12709.
from Yamashiro Jun <j99060@ie.u-ryukyu.ac.jp>.
2001-05-15 04:24:28 +00:00
ichiro 2970b99ac9 It enabled it to control roaming mode and authentication mode.
Roaming mode can change value into 'firm mode' and disable.
Authentication mode can change into 'Open System authentication'
and 'Shared Key Authentication' with Prism2 chip.

wi_get_id() was introduced in order that chip might judge automatically
whether it is Prism2 chip. Therefore, a pp_prism2 entry in
"struct wi_pcmcia_product" became unnecessary.
2001-05-15 04:14:06 +00:00
thorpej 38c798fe9f Encapsulate name declarations in macros in preparation for adding
conditionally-compiled code for the DP83820.
2001-05-15 03:06:21 +00:00
thorpej edfd12a9b1 Define the register/descriptor differences between the DP83815 and the
DP83820.  The DP83820 definitions are wrapped in #ifdef DP83820, since
there are enough differences that a single binary object would not be
able to efficiently drive both the DP83815 and DP83820.
2001-05-15 02:19:05 +00:00
lukem 6cb5e77db5 remove use of gcc syntax for designated initialisers when initialising
unions `union_elem: ...', and use c99 syntax `.union_elem = ...' only
where necessary.
in this case, there's no need to tag elf_probe_func because that's the
first union element, and therefore, the implicit case. only specifically
mention ecoff_probe_func where necessary.

if we decide to not use this c99 feature for now, at least there's now
less stuff to rip out.
2001-05-15 02:00:12 +00:00
bjh21 f44b12db52 Make microtime properly monotonic, with code derived from the /alpha
implementation.
2001-05-14 23:45:39 +00:00
thorpej bdb6ea6ecc Regen; added DP83820 Gigabit Ethernet chip. 2001-05-14 22:37:24 +00:00
thorpej 285931ff50 Add product ID for the National Semiconductor DP83820 Gigabit Ethernet
chip.
2001-05-14 22:36:06 +00:00
jdolecek a97bf5e6b4 Change biosmca() to export the model number via biosmca_ps2model
variable, if the machine has a MCA bus according to info returned
by BIOS (i.e. on machines without MCA bus, biosmca_ps2model would be zero).

biosmca() is expected to be called on beginning the initialization,
and biosmca_ps2model is then used for further checks.
2001-05-14 22:14:47 +00:00
matt 2573405952 Add latent vendor entries for ServerWorks and Winbond IDE controllers.
No code to use them as yet.
2001-05-14 20:41:27 +00:00
fredette 0c48999192 Rewrote a variable constraint to make gcc 2.95 happy. 2001-05-14 20:39:52 +00:00
fredette c5feae5dbf Now always define PGSHIFT. Thanks to the ELF move, note the new
larger msgbuf size and different KERNBASE.
2001-05-14 20:35:58 +00:00
bouyer bc980d7eba Use SCSI/ATAPI common definition for MODE_{SELECT,SENSE}{,_BIG}. Define
functions to send theses commands in scsipi_base.c and use them instead
of ad-hoc commands setups.
2001-05-14 20:35:27 +00:00
ross 26882092f4 o Deal with stray machine checks
o Add for alpha a security-sensitive rate-limiting printf(9) wrapper based
  on ratecheck(9):  void rlprintf(struct timeval *t, const char *fmt, ...);
2001-05-14 19:56:22 +00:00
matt 0c779d0a01 Use the LIST_NEXT & LIST_FIRST macros instead of refering to
le_next & lh_first.
2001-05-14 19:50:43 +00:00
ross f62f237fde Fix new DEBUGLIST feature. 2001-05-14 19:49:03 +00:00
fvdl faa28e2580 Lock vp in nfs_link while we're busy with it (doing VOP_FSYNC, etc). 2001-05-14 18:51:33 +00:00
drochner e047259a1f Initial import of the known working kernel bits for the NetBSD/cesfic
port. cesfic is a VME board with one or two mc68040 processors. See
the README file for details.
The port is working well with a.out userland, there are some problems
with ELF still, like applications running out of memory where it is not
expected. Some parts, in particular the pmap (which was taken from hp300
four years ago), need updating, but this is easier done within the NetBSD
CVS tree.
2001-05-14 18:22:58 +00:00
matt 4eaed60c97 Add IP32 2001-05-14 17:59:22 +00:00
matt 50522d3e8f Add null ip32_bus_reset. Add cpu_intr_establish which calls
crime_intr_establish.  XXX cpu_intr_establish needs to have the
"normal" intr_establish arguments.
2001-05-14 17:56:36 +00:00
matt 4cf3bc7ebc Define splserial to be the same as spltty(). 2001-05-14 17:55:03 +00:00
toshii c939f00e98 Abandon disabled_mask and spl_mask, and use only current_spl_level to
manage interrupt masking.

This change is necessary for straightforward implementation of coming IPL
support for cascaded intrs, and it should not impair performance.
2001-05-14 16:19:30 +00:00
fredette 1ef476f4a4 As a side-effect of the ELF conversion, the msgbuf
can now be 8K large.  Removed more 68881 code that
is only useful if you have the real silicon, which
the 68010 never will.
2001-05-14 15:36:42 +00:00
fredette 9ec520c479 Now, instead of swapping in and out the PROM's segment zero,
swap in and out the mappings for virtual pages zero through three,
which are what the PROM really uses.  This is tied to the
move to ELF and the low memory usage changes.
2001-05-14 15:12:39 +00:00
fredette b49df54c83 One bonus of moving to ELF is that the boot loader on the sun2
now loads the kernel into physical memory at the linked address.
So we link the kernel a little lower virtually, but the bootloader
actually will load it higher in physical memory than before.
This allows us to quadruple the size of the msgbuf to 8K, and
we also shuffle around tmp_vpages and the temporary stack.
2001-05-14 15:07:23 +00:00
fredette d36a2c2284 Made changes to support ELF. Highlights include:
To find the kernel symbol table, instead of expecting
the old a.out struct exec from locore.s, use the
ELF headers found after the kernel text.
2001-05-14 15:00:28 +00:00
fredette f7c1abe426 Many changes to support ELF. Highlights include:
Added % to all register names.  The boot loader now
loads us exactly where we're linked, so no PIC or
remapping funny business.  Removed more 68881 code
that is only needed with the real silicon, which
a 68010 will never have.
2001-05-14 14:44:11 +00:00
ragge 74d7e1ecfa Write support for TU58 tapes written. 2001-05-14 14:43:45 +00:00
jdolecek 6c225c676c Compact the BIOS CFG printout 2001-05-14 14:14:09 +00:00
itojun 498fdebcd7 drop multi destination mode (IFF_LINK0). 2001-05-14 13:35:20 +00:00
leo b38e85279e Allow attachment of a pc-keyboard at console attach time. 2001-05-14 13:18:47 +00:00
leo 6f308f43e8 Add wscons related includes. 2001-05-14 13:10:45 +00:00
leo b522de8af5 Adapt for the Milan. 2001-05-14 11:58:30 +00:00
leo 4eec72908c Regen. 2001-05-14 10:41:03 +00:00
leo f284e82b99 Add (ws)console stuff. 2001-05-14 10:35:30 +00:00
jdolecek 85c02ac331 epintr(): eliminate write-only variable 'addrandom' 2001-05-14 09:28:49 +00:00
scw 94225b1490 port-mac68l/12931 by Dave Huang:
Add an itepoll() function. This one slipped through my recent sweep
of line-disciplines...
2001-05-14 09:27:06 +00:00
jdolecek 6ff7de5716 remove unneeded #includes, fix typo 2001-05-14 08:01:23 +00:00
jdolecek 1f7c685ce3 remove //-commented debugging stuff 2001-05-14 07:35:33 +00:00
jdolecek 497bb809df do not use the synchronous read mode for MCA 3c529 2001-05-14 07:03:50 +00:00
jmc 61ca5f641b Remove ackcb. It's a duplicate of existing functionality. 2001-05-14 06:51:36 +00:00
jmc 98139fa8b9 Make sure and zero out the malloc'd abufs before using them. 2001-05-14 05:46:41 +00:00
ichiro 7f2de75450 Corega FEther PCC-TXD works fine. 2001-05-14 01:44:42 +00:00
ichiro 9a107674e5 regen 2001-05-14 01:43:42 +00:00
ichiro 70f4199532 add product Corega FEther PCC-TXD 2001-05-14 01:41:16 +00:00
ragge 73b901c711 Add checksum calculation, busy-wait loops for receive packets and use
correct interrupt levels (spl7). Reading tapes now work reliable.
2001-05-13 21:19:44 +00:00
manu d473f5bd8a Improved the accuracy of gettimeofday/settimeofday: Linux stores a srtuct
timezone in the kernel. We now keep track of it for emulated processes.
Tested for powerpc and i386. Untested on m68k, but it should be ok
Alpha has a particular implementation (osf1_sys_gettimeofday), and it has
therefore not been touched.
2001-05-13 20:54:42 +00:00
jdolecek 2cd8833615 Change the comment about sucky performance to recommendation to remove
DIAGNOSTIC/DEBUG from the kernel. This helped to boost the performance
on my test machine from ~5KB/s to like 800KB/s for ftp test, and
to like 700KB/s for netio test. I wouldn't have imagined the options
are THAT costly ....
2001-05-13 20:43:04 +00:00
kleink 95fa77ab80 Make this work for PIC (as opposed to pic) without taking chances of fitting
__ffstab into a GOT13 relocation; from Eduardo Horvath.
2001-05-13 20:03:45 +00:00
tshiozak b1c2276feb Correct a simple bug in the recent commit (pmap.c:1.19) by thopej.
I guess he indents to prepare a temporary variable for saving the next
pointer of a list element, but he seems to forget to substitute the
pointer for the variable.  This often causes my dreamcast panic.
2001-05-13 19:41:17 +00:00
scw 7e86548d5c doh, make the last fix compile for '147. 2001-05-13 18:35:19 +00:00
sommerfeld b4c4ecb455 Make this build again ifdef DIAGNOSTIC (oops) 2001-05-13 17:17:34 +00:00
sommerfeld 5b2241ad77 Remove pool reentrancy testing overhead unless DIAGNOSTIC is defined.
Previously, we passed __FILE__ and __LINE__ on all pool_get/pool_set calls.

This change results in a measured 1.2% performance improvement in
ping-flood packets-per-second as reported by ping(8).
2001-05-13 17:06:58 +00:00
chs b98b7c2224 turn on printf format-string checking and -Werror. fix all warnings. 2001-05-13 16:55:37 +00:00
matt ed4e69766c Add VAX640 2001-05-13 15:37:28 +00:00
ragge 9654c235a7 Note TS11 (ts). 2001-05-13 15:34:25 +00:00
ragge 59b29023fd Update the TS11 driver to useable state.
Thanks to Michael Kukat for providing a machine to test this driver.
2001-05-13 15:32:40 +00:00
ragge f66126b9f0 Moved from sys/arch/vax/uba/. 2001-05-13 15:30:10 +00:00
ragge 68d0ed5c0c Add bus type. 2001-05-13 15:24:18 +00:00
ragge 637bffc245 Add bus type to softc. 2001-05-13 15:23:37 +00:00
bjh21 330163a77f Include opt_cputypes.h, since we use CPU_*. 2001-05-13 14:41:56 +00:00
bjh21 ba2ed3776e Refer to the Risc PC IOMD by its real name (which appears to be IOMD20). 2001-05-13 14:30:00 +00:00
bjh21 b9ded015f4 strstr() is no longer used in the kernel. G/C it. 2001-05-13 14:17:36 +00:00
bjh21 e2b24925d1 Use get_bootconf_option() to find boot options, rather than home-grown
strstr()-based hacks.
2001-05-13 13:53:08 +00:00
bjh21 0ea71ec5ea Make use of a.out or ELF symbols dependent on the compile-time definition of
__ELF__.
2001-05-13 13:51:08 +00:00
bjh21 e8fd2642a9 Don't include parse_cpu_options() unless we're going to use it. This fixes
a warning on arm26.
2001-05-13 13:50:01 +00:00
bjh21 1d9afb6c6d Initialise boot_args and boot_file, for get_bootconf_option(). 2001-05-13 13:48:11 +00:00
bjh21 73bc600e40 Use _LOCORE to recognize assembler in the kernel, not ASSEMBLER (which doesn't
get set).
2001-05-13 13:47:23 +00:00
bjh21 2af5062ab7 Add <machine/bootconfig.h> on arm26, and add an <arm/bootconfig.h> for it to
include (since all the contents are MI).
2001-05-13 13:46:23 +00:00
bjh21 61044be691 Move get_bootconf_option() into a new file, sys/arch/arm/arm/bootconfig.c,
since it's in no way machine-dependent.  It's not really ARM-specific either,
but I don't think it's useful enough to be made part of the MI kernel.
2001-05-13 13:44:33 +00:00
jmc 3790f44eac Add a retries counter to abuf 2001-05-13 05:02:08 +00:00
jmc 880b3e6a6f Add locators support 2001-05-13 05:01:42 +00:00
jmc 32b1bba730 Add locator support for fwbus's 2001-05-13 04:54:47 +00:00
jmc a3263e073a Turn off PCMCIADEBUG by default. This should get set with options in a config file 2001-05-13 04:24:51 +00:00
jmc 95cc3bf342 Turn off PCMCIACISDEBUG by default. This should get set with options in a config file 2001-05-13 04:24:28 +00:00
jmc 6cf92c7dba Turn off PCMCIADEBUG by default. This should get set with options in a config file 2001-05-13 04:23:46 +00:00
ross 04ff12867f Make the /u part of show reg/u work. 2001-05-13 01:40:58 +00:00
ross 818513678d The current API for MD support doesn't directly support the documented /u
option to show reg /u.  Fix this by adding a modif[ier] field to struct
db_variable.
2001-05-13 01:38:53 +00:00
gmcgarry bb80cac4a1 pull in lib/libkern/libkern.h to resolve inline tolower() 2001-05-13 00:01:45 +00:00
gmcgarry b2f43b0b94 size -> ${SIZE} 2001-05-12 23:55:07 +00:00
kleink 9e162d4ea5 Delint my previous change. 2001-05-12 22:42:07 +00:00
chs b4de661569 switch next68k to ELF. highlight include:
add "%" prefix to register names in assembly code.
change assembly functions to return pointer values in %a0 instead of %d0.
C symbols no longer prepend an underscore, adjust assembly code for this.
32-bit values are now 32-bit aligned instead of 16-bit aligned,
adjust structure packing and padding to override this where necessary.
make EXEC_ELF std, make EXEC_AOUT and COMPAT_AOUT_M68K optional.
use the MI loadfile() instead of several home-grown versions.
2001-05-12 22:35:29 +00:00
chs 1aeca5a83b define VECTOR() and friends in non-_KERNEL environments too. 2001-05-12 22:27:05 +00:00
chs c70198d510 undo the parts of the last revision which broke QUEUEDEBUG builds. 2001-05-12 20:18:23 +00:00
christos 00adbfd8d6 - Handle realloc failure without leaking memory
(reported by: grendel@heorot.stanford.edu (Ted U)
- Don't cast malloc/realloc/calloc return values because they hide LP64 bugs.
- Don't destroy the whole array when realloc fails
- Use calloc in all cases (malloc was used inconsistently).
- Avoid duplicating code.

Reviewed by: ross
2001-05-12 19:21:57 +00:00
christos 6f62797262 Don't leak memory in case of a realloc failure.
Reported by: grendel@heorot.stanford.edu (Ted U)
2001-05-12 19:18:57 +00:00
takemura e427bbc2de Add '#if defined(_KERNEL) && !defined(_LKM)' to avoid including
opt_spec_platform.h when you compile standalone program (bootloader).
2001-05-12 10:17:20 +00:00
takemura b8cf6af7cb Fix description about frame buffer type. 2001-05-12 10:08:59 +00:00
kleink ba6a8bf61e Update to reflect that unlike in m68k a.out environments, where the .align
directive is given a log2 argument, .align is given a linear argument in
m68k ELF environments.
2001-05-12 00:55:34 +00:00
tsutsui 9247a0bbcc - Declare pccnattach() in <machine/pccons.h>
- Make cpu_reboot() reset machines properly without pccons
2001-05-11 21:15:11 +00:00
kleink 045d2b0272 Make this build again. 2001-05-11 19:19:44 +00:00
itojun f4d5905544 there's no need to #if NFAITH here. IN6P_FAITH can be set even on
NFAITH == 0 kernel, it is safer to always check the condition.
sync with kame.
2001-05-11 18:38:03 +00:00
kleink 58a818769b * Fix remaining 32-bit vs. native pointer problems in data structures;
reviewed by Eduardo.
* Define the size of uc_pad, so ucontext32_t will have the correct size.
2001-05-11 17:37:14 +00:00
kleink 1d8e184b6b svr4_32_mcontext.gwin is a pointer 32 bits wide. 2001-05-11 16:49:22 +00:00
tsutsui 67b73792f6 Clean up redundant declarations. 2001-05-11 16:36:42 +00:00
scw e2177c7f71 Ensure the caches are flushed before changing the `cacheble' state
of a page.
2001-05-11 13:05:06 +00:00
scw 6ca2fd54c1 Take the offset and length into account inside bus_dmamap_sync().
(Inspired from the Atari version).

This fixes a problem seen with the new MI osiop driver.
2001-05-11 13:01:44 +00:00
jmc bfd7dcb931 Add first pass generic ack callback code (to eventually replace mbuf specific code).
Change ab_node's to ab_req.
Fix a bug where setting BIBValid on OHCI 1.0 chips (this is a reserved bit
on 1.0)
2001-05-11 06:10:44 +00:00
jmc 29499573cd Change ab_node's to ab_req.
Use read/write instead of input/output.
Fix a bug in attach where the abuf wasn't getting zero'd out.
2001-05-11 06:09:01 +00:00
jmc 5bf1559a64 Rename input/output to read/write to match ieee1394var.h 2001-05-11 06:07:40 +00:00
jmc 2d235c864f Add some notes 2001-05-11 06:07:02 +00:00
jmc b4974f0526 Add first pass of generalized hooks for packet completion (i.e. ack) codes. This will eventually replace the mbuf code when it moves back to if_fw.c where it belongs. 2001-05-11 06:06:03 +00:00
jmc 6dc32302f3 Add mask for getting the ACK bits out of the status area of a DMA context descriptor 2001-05-11 06:04:49 +00:00
jmc b7d6b60f87 Change abuf to include both requestor and responder softc's (for dealing with requests from other nodes later).
Add a callback so the ACK bits can be looked at if wanted.
Change the input/output pointers to proper proto's and rename to read/write.
2001-05-11 06:03:55 +00:00
jmc 32a67a12cd Remove extraneous prototype 2001-05-11 06:00:17 +00:00
lukem 6685080692 add missing parenthesis in macros, detected by lint and debugged by todd. 2001-05-11 05:13:57 +00:00
thorpej a3fad63f23 Rafal's Indigo2 kernel configuration. 2001-05-11 05:05:42 +00:00
thorpej 5c3fa40aa3 Autoconfiguration glue changes for Indigo2/Indy support. 2001-05-11 05:04:34 +00:00
thorpej c68eb33351 Delete __NO_SOFT_SERIAL_INTERRUPT. 2001-05-11 05:02:30 +00:00
thorpej c36aca4169 Support for configuring an SCC console. From Rafal K. Boni. 2001-05-11 04:56:56 +00:00
thorpej 935ed514af Support for the IP22 (Indigo2, Indy, Challenge S). From Rafal K. Boni. 2001-05-11 04:56:09 +00:00
thorpej 07d7386b8f Move IP32 (O2) support into its own file.
From Rafal K. Boni.
2001-05-11 04:55:42 +00:00
thorpej acc9f8ef65 Adjustments for dynamic system configuration. From Rafal K. Boni. 2001-05-11 04:53:25 +00:00
matt 063e046c8f Add MI cprofb (used on shark and netwinder) 2001-05-11 04:47:56 +00:00
thorpej 7583466c6f Expose atoi(). From Rafal K. Boni. 2001-05-11 04:47:55 +00:00
matt 0f8a2c610f Add MI cprofb (used on shark and netwinder) 2001-05-11 04:47:55 +00:00
thorpej 148ab319ac Use hit-flush ops in bus_dmamap_sync(). From Rafal K. Boni. 2001-05-11 04:46:22 +00:00
thorpej fc4bcdcdf2 We now have generic soft interrupts. 2001-05-11 04:42:41 +00:00
thorpej a8a801d6f3 Dynamic system configuration support, derived from pmax port.
From Rafal K. Boni.
2001-05-11 04:42:13 +00:00
thorpej c9ca9bb770 SGI machine types and subtypes. From Rafal K. Boni. 2001-05-11 04:38:22 +00:00
thorpej 6b313f2c5f Basic EISA support for the Indigo2. From Rafal K. Boni. 2001-05-11 04:36:15 +00:00
thorpej 13f69bc540 Generic software interrupt implementation, derived from mipsco
implementation.

From Rafal K. Boni.
2001-05-11 04:32:05 +00:00
thorpej 87f3aebd5e New data structures for the new SCC driver.
From Rafal K. Boni.
2001-05-11 04:26:17 +00:00
thorpej f24f6c113d Support for the SCC serial ports on Indigo2/Indy.
From Rafal K. Boni.
2001-05-11 04:24:44 +00:00
thorpej 3b92374a20 Support for the Indigo2/Indy IMC (this is that to which all other
devices are attached).
2001-05-11 04:22:55 +00:00
thorpej e6e4372ada New clock functions, based on the newsmips versions. These
actually do something, by calling into the hardware clock
routines set up during autoconfiguration.

From Rafal K. Boni.
2001-05-11 03:42:59 +00:00
thorpej ce9753d9e9 Autoconfiguration glue for HPC devices.
From Rafal K. Boni.
2001-05-11 03:23:38 +00:00
thorpej 5885656e58 Support for the Seeq 8003 Ethernet attached to the HPC ASIC,
found on Indigo2 and Indy.

From Rafal K. Boni.
2001-05-11 03:22:21 +00:00
thorpej 5d02689ede IOC1/2 memory map.
From Rafal K. Boni.
2001-05-11 03:18:57 +00:00
thorpej 726924bc4c Support for the Dallas 1286 clock found on the Indigo2 and Indy. 2001-05-11 03:16:59 +00:00
thorpej c4173c40c1 Support for the HPC I/O peripheral ASIC. There is where SCSI, Ethernet,
etc. live on the Indigo2 and Indy.

From Rafal K. Boni.
2001-05-11 03:11:20 +00:00
thorpej 149ebabf26 Get the major number of the CRIME properly.
From Rafal K. Boni.
2001-05-11 02:25:21 +00:00
thorpej 240de9a426 Definitions for the Dallas Semiconductor DS1286/DS1386 Real Time Clock.
From Rafal K. Boni.
2001-05-11 02:07:09 +00:00
thorpej 4efd12ca44 Set SR to PSL_LOWIPL rather than MIPS_INT_MASK | MIPS_SR_INT_IE,
as the former accounts for some mips3-related options.

From Rafal K. Boni.
2001-05-11 02:03:01 +00:00
thorpej 0976e733f4 Correct args to SYSCALL_DEBUG related function calls.
From Rafal K. Boni.
2001-05-11 01:42:32 +00:00
thorpej 18e25d5feb Add a flag to suppress SCC reset at attach time.
From Rafal K. Boni.
2001-05-11 01:40:48 +00:00
petrov 591e596a12 john heasley patch <heas@shrubbery.net>, PR port-sparc/12885
added PROM name translations for hme and fas
2001-05-10 23:11:53 +00:00
fvdl ba2882488a Despite what the hardware docs say, the global reset command is not
done when the command-in-progress bit has been cleared. The 1ms
time that is mentioned also seems wrong; 20,000us is not enough
on at least one machine. So, do a delay(100000) in ex_reset.
Fortunately, this function is only called when the card is
attached or when hardware failure is suspected.

While here, only mask one 1 bit in the 'reset hack' case.
2001-05-10 22:57:44 +00:00
tron 74cc245bbe Fix typo: Pnp -> PnP 2001-05-10 22:12:38 +00:00
fredette ee50c275ca Put longjmp's return value in the proper %d0. 2001-05-10 16:50:22 +00:00
pk 8001e23cd0 * reserve NBPG et.al. for kernel usage only.
* remove obsoleted comment on `physmap'.
2001-05-10 11:01:08 +00:00
pk 6016064c18 SHMLBA:
kernel use: change to PAGE_SIZE
	userland: call libc's internal __sysconf(_SC_PAGESIZE)
2001-05-10 10:50:51 +00:00
ad 8aad07ad6a Add missing printf(). 2001-05-10 09:41:19 +00:00
thorpej 2f58df9a8f Rearrange the code that adds pages of objects to the pool; require
that the caller allocate the pool_item_header when it allocates the
pool page, so we can avoid a locking pitfall (sleeping with a simple
lock held).

Also revive pool_prime(), as there are some letigimate uses of it,
but in doing so, eliminate some of the bogosities of the old version
(i.e. don't do an implicit "setlowat", just prime the pool, and incr
the minpages for each additional page we add, and compute the number
of pages to prime in a way that callers would expect).
2001-05-10 04:51:41 +00:00
thorpej 6ec67f871a Use POOL_NEEDS_CATCHUP() in one more place. 2001-05-10 02:19:32 +00:00
augustss f63784bfbe Improved fix of PR12796, from Frederick Bruckman <fb@enteract.com> 2001-05-10 01:54:30 +00:00
itojun 63181d71c1 correct ecn consideration on tunnel encap/decap. sync with kame. 2001-05-10 01:37:42 +00:00
thorpej db26619a5e Encapsulate the test for a pool needing a pool_catchup() in a macro. 2001-05-10 01:37:40 +00:00
itojun 2c2ff2e32d one more indentation fix 2001-05-10 01:30:55 +00:00
itojun b87cb9344b whitespace/indentation cleanup 2001-05-10 01:23:51 +00:00
lukem 88d538c21e fix comment; cdev_notdef() is a funny pc console :) 2001-05-10 01:23:23 +00:00
itojun dc452a48f6 no longer need to carry local version of inet_ntoa, we have it in libkern. 2001-05-10 01:04:08 +00:00
thorpej 627edfcb50 Remove pool_create() and pool_prime(). Nothing except pool_create()
used pool_prime(), and no one uses pool_create() anymore.

This makes it easier to fix a locking pitfall.
2001-05-09 23:46:02 +00:00
thorpej 626cb1c3ce Use pool_init() rather then pool_create(). 2001-05-09 23:38:20 +00:00
thorpej e2a791df22 Use pool_init() rather than pool_create(). 2001-05-09 23:20:59 +00:00
matt c2214aaf3c Remove includes that only include <arm/*.h>. These are now picked up
automatically when making kernels. (to be submitted).  Next rev will
eliminate those includes that include <arm/arm32/*.h>
2001-05-09 22:30:43 +00:00
augustss 5c9ba155e3 Apply patch in PR lib/12796 from Frederick Bruckman <fb@enteract.com> 2001-05-09 21:49:58 +00:00
kleink dd4df24b01 Make the set of machine state restored by setmcontext() identical to that of
sigreturn().
2001-05-09 20:31:00 +00:00
kleink e0b29e0491 Sync with native emul: rename sc_tstate to sc_psr. 2001-05-09 20:21:50 +00:00
kleink f0d6ebbd33 Make restoring the PSR ICC bits really work in __sigreturn14(). 2001-05-09 20:13:38 +00:00
fvdl 0cc3c4a023 Suppress another case of a potentially noisy error message which
isn't fatal.
2001-05-09 20:02:32 +00:00
kleink aec2bbb42f Sync sc_psr comments with reality. 2001-05-09 19:50:49 +00:00
kleink 7dbfdb5508 In the 32-bit ABI case:
* rename sigcontext.sc_tstate to sc_psr, since this is how it is known to
  the 32-bit API, and also used for;
* don't try to squeeze the tstate into it, just emulate the ICC bits.

Per discussion with Eduardo.
2001-05-09 19:46:22 +00:00
augustss 59f85c4e3e Ansify a function I forgot last time. 2001-05-09 19:33:07 +00:00
fvdl defa9bf05f Avoid potential cases of sleeping while holding a spinlock. Pay attention
to SWF_FAKE when finding a swap device. GC swapdrum_add; it was only
a few lines long and called once, so just inline the code there.
2001-05-09 19:21:02 +00:00
thorpej 6300e455b4 Make sure `bhlc' is initialzed before we consult it to determine
the number of functions on the card.
2001-05-09 18:16:39 +00:00
matt 9c197c4609 Change references to <arm32/isa/timerreg.h> to <dev/ic/i8253reg.h>
Remove timerreg.h
2001-05-09 17:34:40 +00:00
tsutsui 73c5107dc5 Tidy up some debug messages. 2001-05-09 16:44:44 +00:00
tsutsui 330ab2b636 Print a clock frequency of the chip. 2001-05-09 16:24:43 +00:00
matt bd9a11ee56 Populate ofw subtree. 2001-05-09 16:08:43 +00:00
matt 16db09f9f6 Add isa_machdep.c for dnard 2001-05-09 15:58:50 +00:00
matt 77666e6c72 Populate dnard/dnard. 2001-05-09 15:58:07 +00:00
matt 0cd5b27a79 Populate dnard/include 2001-05-09 15:40:54 +00:00
matt a0b5b1f2ba Cleanup and make accurate to current dnard status. 2001-05-09 15:20:49 +00:00
matt a9dceff4e1 add cpu ofbus attachment. (dnard has no mainbus). 2001-05-09 15:19:00 +00:00
matt 86fff9f3e8 Use the common arm32/pcb.h. Rearrange db_machdep.h to get definitions
before declaring functions.
2001-05-09 15:17:45 +00:00
matt 879ab84d00 Modify this for dnard (remove monitor stuff). 2001-05-09 15:16:24 +00:00
augustss 94b7017e7f Point out where the documentation is wrong. 2001-05-09 12:08:44 +00:00
augustss f82cb49523 Add FireWire OHCI controller on Cardbus. 2001-05-09 12:07:40 +00:00
augustss 7ac3b0b5a9 Ansify. 2001-05-09 12:07:01 +00:00
augustss c37a0f8fb8 Fix grammaer in error message. 2001-05-09 12:06:25 +00:00
shin 6fbde674dd don't define TAILQ_EMPTY here. TAILQ_EMPTY is defined in <sys/queue.h>. 2001-05-09 11:57:05 +00:00
fredette 66c27dfc2e Removed, cleaning up (no-)FPU support. 2001-05-08 21:39:24 +00:00
kleink cddc4b4264 While we're here, do SVR4_SPARC_ASI as well. 2001-05-08 20:57:17 +00:00
kleink 3d3703c7bd On v9, greg[0] isn't a TSTATE-in-PSR hack but just CCR. 2001-05-08 20:46:49 +00:00
kleink bd0787e771 One step closer to making ICC/CCR manipulation work. 2001-05-08 19:30:05 +00:00
uch fae3e8e7c1 KNF. 2001-05-08 18:51:22 +00:00
uch 5dd9fe4aa5 set allocatable PCMCIA I/O space size. 2001-05-08 18:08:02 +00:00
uch ecdf760718 fix locking problem of event queue access. 2001-05-08 17:23:09 +00:00
ichiro 09858f6fc8 change promisc mode in case of SIOCSIFFLAGS of wi_ioctl.
Fix indentation.
2001-05-08 16:42:49 +00:00
uch dbb7276f40 fix RCS Id. 2001-05-08 14:46:06 +00:00
ichiro 1480c8fae2 delay(10) is too much enough for command waiting routine. 2001-05-08 13:42:04 +00:00
fredette 64432ee924 cpu_Debugger() is always available on the sun2. 2001-05-08 13:07:35 +00:00
matthias 0edc338e99 third argument of pcpoll is a struct proc now. 2001-05-08 11:29:39 +00:00
itojun a262f7cc76 remove #ifdef for freebsd 2001-05-08 11:06:21 +00:00
itojun 1bec764d78 correct faith prefix determination. use sys/netinet/if_faith.c:faithprefix()
to determine.  sync with kame.
(without this change, non-faith socket may mistakenly accept for-faith traffic)
2001-05-08 10:15:13 +00:00
itojun 02077e028f pull encapsulated packet for vif* via ip_encap framework. 2001-05-08 10:07:15 +00:00
matt c8f1f39d19 Disable the secondary ide port in the pcibus_attach_hook. 2001-05-08 06:55:17 +00:00
is 09a3dd5f0c defopt LEV6_DEFER. 2001-05-08 06:09:29 +00:00
nisimura 7ec840fbe5 Add comment to tell what cpu_fork() does around at its bottom.
What's wrong; the initial SR value in pcb0 gets overwritten before
the first kthread_create1() is called.  For a normal process which
has user mode it doesn't matter because proc_trampoline() makes
the process to have spl0 during exception return path to user mode,
however, kthreads stay in kernel mode mistakenly left in splhigh
condition.  The trouble is visible as severe clock drifts when
system activity is high.
2001-05-08 06:02:14 +00:00
ross d6a25f9b02 Add DEBUGLIST mechanism. Example config line:
makeoptions DEBUGLIST="uvm* trap ufs*"
This turns on -g for only those files matching a DEBUGLIST pattern word.
2001-05-08 05:47:35 +00:00
nisimura 580e36f497 Make sure to have spl0 condition whenever a new thread of control
is created.  System kthreads are mistakenly left splhigh state.

pcb0 has an initial SR value for spl0 condition which are expected to
be propagated to all of children
2001-05-08 05:36:01 +00:00
thorpej 0b8c6fcc77 Fix a silly mistake I made when reworking the uvm inactive list
some time ago.  The mistake was to check that the page was not
referenced since the last active scan before moving it to inactive.
Now we just clear reference and move it to inacive (which is where
the second clock hand sweep occurs).
2001-05-07 22:01:28 +00:00
fredette bdf32dea4f Turned all lea/jsr combinations back into jbsrs,
as they were originally.
2001-05-07 21:48:24 +00:00
jdolecek 27a5a43c04 In the check_header() function, bump the number of allowed section headers
to 512. Apparently, there are ELF binaries with more than 128 section
headers - an example is one of Linux Word Perfect 8 utilities.

This fixes kern/12455 by Mark Davies.
2001-05-07 17:09:13 +00:00
uch 93069cf02a recompile. 2001-05-07 11:15:28 +00:00
uch a4cf833c49 add Fujitsu PenCentra 130 entry. 2001-05-07 11:12:10 +00:00
lukem a4845ebfa1 delint to c89; use #define instead of static const int for an array size 2001-05-07 10:15:46 +00:00
manu 7e6929fe90 Changed EMUL_BSD_ASYNCIO_PIPE to EMUL_NO_BSD_ASYNCIO_PIPE, so that
the native emulation (NetBSD) does not have a flag.
2001-05-07 09:55:12 +00:00
minoura 0bb85c4922 Encoding ulinear and mulaw are both software emulated.
From Isaki-san.
2001-05-07 09:42:30 +00:00
lukem 5b2ac78763 regen from vnode_if.sh rev 1.29 2001-05-07 08:48:07 +00:00
lukem e1adc31453 delint: vop_default_desc was declared const but not defined const. 2001-05-07 08:46:02 +00:00
lukem a9bf1b0410 delint 2001-05-07 08:15:41 +00:00
enami 8e5a4722c5 Make this file *just* compiles again when __HAVE_MINIMAL_EMUL is defined. 2001-05-07 02:51:53 +00:00
enami 362af21bc7 Fix broken indentation introduced by previous commit. 2001-05-07 02:28:55 +00:00
is 9c48209178 Be more verbose in the warnings. 2001-05-06 20:49:43 +00:00
ad 3db21b039c We map in by MLX_EISA_SLOT_OFFSET, so remember that when accessing the
IOCONF registers. Pointed out by thorpej.
2001-05-06 20:34:41 +00:00
ad 14ad1926a8 Add mlx at eisa. 2001-05-06 20:32:20 +00:00
kleink a7d0606917 Cosmetical oversight. 2001-05-06 20:25:28 +00:00
thorpej 04f36fcb9e Remove a comment which is no longer true. From Artur Grabowski. 2001-05-06 20:12:09 +00:00
fvdl 8311862915 Add amd766 support. Rename some variables to 7x6 now that it supports
both 756 and 766.
2001-05-06 20:06:35 +00:00
ad ae9cc4fa8a Add an (untested) EISA front-end for the `mlx' driver. 2001-05-06 19:54:59 +00:00
ad 95450fbced Make provision for resetting the board at start-up. 2001-05-06 19:53:04 +00:00
ad d4d6497c45 Regen. 2001-05-06 19:44:14 +00:00
ad 0c528fcfc0 Add some Mylex products. 2001-05-06 19:43:54 +00:00
manu 573ce64c6b implement the recently introduced EMUL_BSD_ASYNCIO_PIPE emulation package
flag.

EMUL_BSD_ASYNCIO_PIPE notes that the emulated binaries expect the original
BSD pipe behavior for asynchronous I/O, which is to fire SIGIO on read() and
write(). OSes without this flag do not expect any SIGIO to be fired on
read() and write() for pipes, even when async I/O was requested. As far as
we know, the OSes that need EMUL_BSD_ASYNCIO_PIPE are NetBSD, OSF/1 and
Darwin.
2001-05-06 19:22:32 +00:00
manu 5a6b8191b5 Added two flags to emulation packages:
EMUL_BSD_ASYNCIO_PIPE notes that the emulated binaries expect the original
BSD pipe behavior for asynchronous I/O, which is to fire SIGIO on read() and
write(). OSes without this flag do not expect any SIGIO to be fired on
read() and write() for pipes, even when async I/O was requested. As far as
we know, the OSes that need EMUL_BSD_ASYNCIO_PIPE are NetBSD, OSF/1 and
Darwin.

EMUL_NO_SIGIO_ON_READ notes that the emulated binaries that requested
asynchrnous I/O expect the reader process to be notified by a SIGIO, but
not the writer process. OSes without this flag expect the reader and the
writer to be notified when some data has arrived or when some data have been
read. As far as we know, the OSes that need EMUL_NO_SIGIO_ON_READ are Linux
and SunOS.
2001-05-06 19:09:52 +00:00
bjh21 0336117218 The arch/arm32/kshell code was removed three years ago. Kill references to it. 2001-05-06 18:38:58 +00:00
bjh21 6d4648fa03 Move "defopt PMAP_DEBUG" into files.arm, since it's used by code in arch/arm. 2001-05-06 18:31:14 +00:00
drochner 06fc2f85cc Since __HAVE_OLD_DISKLABEL, DISKMINOR(u, p) isn't continuous over "p"
anymore. So we can't pass a range to vdevgone() but have to loop over the
partitions explicitely.
(otherwise the next device unit will be killed)
2001-05-06 18:30:56 +00:00
bjh21 e08b3af21d Add stub <machine/cpufunc.h> for arm26. 2001-05-06 18:25:27 +00:00
bjh21 f9087c439b Move cpufunc stuff from arm32/arm32 to arm/arm. The only change involved is
to add recognition of the SA-1100 and SA-1110 for compatibility with hpcarm
(which is now using this code as well).
2001-05-06 18:01:42 +00:00
ragge fda35ea62c Add dmc. 2001-05-06 17:38:36 +00:00
ragge 816247df06 Add il, dmc, ts and if_uba. 2001-05-06 17:37:52 +00:00
ragge 09a79adad2 Driver for the DMC-11/DMR-11 DDCMP interface, (untested) from 4.4BSD. 2001-05-06 17:36:04 +00:00
simonb b3a4957ee5 Fix spr and tbr register number extraction. tbr is untested, but is the
same format as spr and had the same mistake.
2001-05-06 16:40:22 +00:00
simonb 982e593742 Remove duplicate opcode. 2001-05-06 16:11:17 +00:00
fvdl 9fce66b9a0 Regen. 2001-05-06 16:10:45 +00:00
fvdl 6e51539959 Add some IDs for the AMD760 chipset, as specified in the datasheet. 2001-05-06 16:09:38 +00:00
ragge bb0a481471 Add il + ifuba. 2001-05-06 15:32:47 +00:00
ragge 7026635893 Driver for the Interlan NI1010 Ethernet Controller, from 4.4BSD. 2001-05-06 15:30:46 +00:00
simonb ad336f45ee Fix a bunch of other typos. 2001-05-06 15:30:13 +00:00
ragge 93011fb5f6 Use if_uba + ether_ioctl routines. Removed ~150 lines of duplicated code. 2001-05-06 15:27:48 +00:00
ragge 9b9db3a6bd Back from the dead, but now changed to use the bus_dma interface.
Still to do:
	- ubaresets
	- BDP handling
2001-05-06 15:21:44 +00:00
fvdl 9bf58a757b Add missing break statement. 2001-05-06 14:32:35 +00:00
takemura 54d9a46bbc Vrc4172 GPIO support. This device is currently configured on PenCentra 130. 2001-05-06 14:25:15 +00:00
simonb 2113399bb4 Fix typos in two instruction codes. 2001-05-06 14:25:09 +00:00
kleink 3afd5feae1 Add a __static_cast() macro to help standard headers when used in C++
compile environments using G++'s -Wold-style-cast warning;
suggested by Dave Sainty in PR lib/11766.
2001-05-06 14:04:58 +00:00
simonb d4e74d04aa Declare schedhz and rrticks as 'externs'. 2001-05-06 13:47:14 +00:00
simonb cbbd901bdc Declare schedhz. 2001-05-06 13:46:34 +00:00
simonb 6a2acde042 Save the start and end positions in the message buffer of the formatted
panic string.

Suggested by Jason Thorpe eons ago.
2001-05-06 13:23:42 +00:00
simonb 6a64a03f21 Remove prototype for non-existant function. 2001-05-06 12:50:45 +00:00
hannken 3446a61cb3 Fix a typo from thorpej_scsipi merge. No-sense information with retval == 0
should only print if SCSIPI_DEBUG is defined.
2001-05-06 11:31:08 +00:00
ross 6b9d94cd8c Fix overflow errors in brk(2). 2001-05-06 04:32:08 +00:00
ichiro 8bb5cfe6aa divided into PCMCIA attachment and common code of wi.
since if_wi_ieee.h does not depend for pcmcia,
sys/dev/pcmcia/if_wi_ieee.h was moved to sys/dev/ic/wi_ieee.h .
2001-05-06 03:26:38 +00:00
hubertf b866d429c1 vlan does not belong to group of IPv6 pseudo-devices 2001-05-06 01:54:19 +00:00
thorpej 18c5f91b0b Fix a deadlock cause by a lock ordering interaction between pmap_enter()
and pmap_growkernel().
2001-05-05 18:22:04 +00:00
jdolecek 3cacf40566 recognize ed as boot device 2001-05-05 17:53:59 +00:00
takemura 4cfc3259b6 Add entry for 'PenCentra 130'.
The version number is '1.17.5 2001.05.05'.
2001-05-05 14:42:41 +00:00
bjh21 3fc08cf178 Implement pmap_resident_count() and pmap_wired_count() properly. 2001-05-05 14:20:05 +00:00
kleink 9c7039688b * Replace a couple of cases of u_char and u_short with uint8_t and uint16_t,
respectively.
* Simplify sockaddr_storage calculations a bit by the fact that, per defintion,
  sizeof (char) == 1.
Fixes PR standards/10791.
2001-05-05 12:47:58 +00:00
takemura a44e218942 Fix Makefile to generate dummy pbsdboot/opt_spec_platform.h, which will
be created by config(8) when you compile kernel. And update binary files.
The version number is '1.17.4 2001.05.05'.
2001-05-05 08:26:11 +00:00
takemura 83a1287ab0 Add wrapper header files. 2001-05-05 08:14:21 +00:00
takemura 58a528e2f3 Add entries of Fujitsu PenCentra series. 2001-05-05 05:45:29 +00:00
shin 66ff05bcae change maxusers 8 -> 10.
without this change, 'make build' will fail.
2001-05-05 05:04:27 +00:00
thorpej 18639a81be No need to have code we don't use anymore. 2001-05-05 02:20:53 +00:00
minoura c9c82d303a Use cdev_decl for prototype declarations (port-x68k/12829, thanks to scw
for suggestion).
Add static to some non-external functions.
2001-05-05 01:52:56 +00:00
hubertf 8093ee4bba vlan does not belong to the IPv6 devices (gif, stf, ...), so seperate it
visually.
2001-05-05 00:11:48 +00:00
thorpej da1f26d65f Add pool_cache_destruct_object(), used to force destruction of
an object and release back into the pool.
2001-05-04 19:41:25 +00:00
bouyer bef8b534cc Now that we can do it, print "HPT366" or "HPT370" depending on PCI revision. 2001-05-04 18:38:36 +00:00
simonb cc25d71c5e Fix current KERN_MAXID - it was one too many. 2001-05-04 15:50:13 +00:00