summaryrefslogtreecommitdiff
path: root/sys/arch/hpcsh/include
AgeCommit message (Collapse)Author
2021-11-02In order to prevent _mcount() from being recursively called when built with ↵ryo
COPTS=-O0, sprinkle `__always_inline' to make _mcount() be generated as a single function.
2021-10-27Remove unnecessary multiple-inclusion-protection from these tinythorpej
stub headers.
2021-04-01Whitespace: #define<tab>simonb
2021-01-23Document via __HAVE_BUS_SPACE_8 platforms that implement bus_space_*_8christos
2020-09-06Fix some more uvm header fallout. Add include guards while here.riastradh
2019-09-23Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all archesskrll
to follow arm and (generic) mips. Reviewed by christos.
2019-05-07Switch all users (except ia64) of custom machine/ansi.h to common_ansi.hkamil
Deduplicate the code among ports and poll definitions of types directly from a compiler. This fixes miscompilation of certain programs that instruct compilers to generate code for different types. This bug has been detected with -fshort-wchar in EFI firmware. Proposed and discussed on a mailing list (twice). Itanium uses custom !ELF fallback switch, temporarily leave it as it is.
2018-07-12Remove the kernel PMC code. Sent yesterday on tech-kern@.maxv
This change: * Removes "options PERFCTRS", the associated includes, and the associated ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is good. * Removes the PMC code of ARM XSCALE. * Removes all the pmc.h files. They were all empty, except for ARM XSCALE. * Reorders the x86 PMC code not to rely on the legacy pmc.h file. The definitions are put in sysarch.h. * Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control and sys_pmc_get_info syscalls. They are marked as OBSOL in kern, netbsd32 and rump. * Removes the pmc_evid_t and pmc_ctr_t types. * Removes all the associated man pages. The sets are marked as obsolete.
2016-08-25fenv.h for shchristos
2015-06-11Move declaration of avail_start, avail_end to <machine/kloader.h>matt
2012-03-28- Normalize inclusion protection (remove)christos
- Move CHAR_{MIN,MAX} to a common file. - Fix broken comments
2011-08-30Add getlabelusesmbr(), as proposed inbouyer
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html This is used by disk tools such as disklabel(8) to dynamically decide is the undelyling platform uses a disklabel-in-mbr-partition or not (instead of using a compile-time list of ports). getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the machdep #define LABELUSESMBR. For evbmips, make LABELUSESMBR 1 if the platform uses pmon as bootloader, and 0 (the previous value) otherwise.
2011-07-20Move macros _BUS_SPACE_WRITE(), _BUS_SPACE_WRITE_MULTI(), etdyoung
cetera, into <hpcsh/bus_util.h> for both hpcsh/bus_space.c and dev/hd64461/hd64461pcmcia.c to use them. (I haven't had a close look at what hd64461pcmcia.c is doing, but I have a hunch that it is a good use for bus_space_tag_create(9).)
2011-07-19Straggler from last: bus.h -> bus_{defs,funcs}.h.dyoung
2011-07-19Change <machine/bus.h> to <sys/bus.h> throughout.dyoung
Split bus.h -> bus_{defs,funcs}.h. Mark hpcsh/bus.h obsolete.
2011-07-17Retire varargs.h support. Move machine/stdarg.h logic into MIjoerg
sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
2010-08-09Use empty do/while for no-op.uwe
2010-06-28Fix always free. It call, if memory was allocated.kiyohara
2010-05-22HPW-50PA PERSONA seems to use a different RTC base year valuetsutsui
(1996, not 1900 or 2000) so handle the quirk by device properties and set it in MD device_register(). Also make RTC baseyear value patchable in sh3/dev/rtc.c. No visible changes to other sh3 RTC users.
2009-12-05Remove support for NetBSD/playstation2.pooka
2009-03-14Remove all the __P() from sys (excluding sys/dist)dsl
Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
2008-08-05Update <machine/ieeefp.h> to use the C99 FE_* definitions instead of thematt
NetBSD defined ones. Redefine the NetBSD ones in terms of the C99 ones. Step 1 to having <fenv.h>
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-12-03Interrupt handling changes, in discussion since February:ad
- Reduce available SPL levels for hardware devices to none, vm, sched, high. - Acquire kernel_lock only for interrupts at IPL_VM. - Implement threaded soft interrupts.
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2007-02-21add a pair of new bus_dma(9) functions:mrg
int _bus_dmatag_subregion(bus_dma_tag_t tag, bus_addr_t min_addr, bus_addr_t max_addr, bus_dma_tag_t *newtag, int flags) void _bus_dmatag_destroy(bus_dma_tag_t tag) that allow a (normally broken/limited) device to restrict the bus address range it can talk to. this is used by bce(4) to limit DMA addresses to 1GB range, the maximum the chip can address. all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several people on tech-kern. XXX: bus_dma(9) needs an update still.
2007-02-16Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch calloutsad
via a soft interrupt. In the near future, softclock will be run from process context.
2007-02-09Merge newlock2 to head.ad
2006-12-21merge yamt-splraiseipl branch.yamt
- finish implementing splraiseipl (and makeiplcookie). http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html - complete workqueue(9) and fix its ipl problem, which is reported to cause audio skipping. - fix netbt (at least compilation problems) for some ports. - fix PR/33218.
2006-07-26don't install <machine/db_machdep.h>, this is kernel onlydrochner
2006-03-04s/u_intN_t/uintN_t/uwe
2006-03-01merge yamt-uio_vmspace branch.yamt
- use vmspace rather than proc or lwp where appropriate. the latter is more natural to specify an address space. (and less likely to be abused for random purposes.) - fix a swdmover race.
2005-12-11merge ktrace-lwp.christos
2005-06-12Make disklabel(8) and fdisk(8) into "host tools " last step: builddyoung
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel, ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/. To avoid clashes with a build-host's header files, especially on *BSD, the host-tools versions of fdisk and disklabel search for #includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h, and bootinfo.h in a new #includes namespace, nbinclude/. That is, they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>, <nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and such. I have also updated the system headers to #include from nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-03-09Add a dm_maxsegsz public member to bus_dmamap_t. This allows a user of the APImatt
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz supplied to bus_dmamap_create). dm_maxsegsz is reset to the value supplied to bus_dmamap_create when the dmamap is unloaded.
2004-07-06MI part of kloader moved to dev/kloader.c from arch/hpc/hpc/uch
dreamcast and playstation2 port are changed to use this.
2004-07-03jornada 6x0 power mannagement support.uch
[on/off] button power off LCD and CPU sleeps.
2004-05-08Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.kleink
2003-10-25Bump _INTR_N from 8 (all of which were used) to 16 so that it'suwe
possible to do experiments with new drivers without hitting this limit. Of this delta we already consume two slots on Jornada 680 for IRQ0 (j6x0pwr) and IRQ3 (j6x0tp).
2003-10-23No need for multiple-inclusion protection in these.kleink
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-06-15Handle 64bit DMA addresses on PCI for platforms that can (currently onlyfvdl
enabled on amd64). Add a dmat64 field to various PCI attach structures, and pass it down where needed. Implement a simple new function called pci_dma64_available(pa) to test if 64bit DMA addresses may be used. This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>, and there is more than 4G of memory.
2003-04-19PR/3012: Greg A. Woods: Write all float.h files [except the vax of course]christos
in terms of float_ieee.h
2003-01-28Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it.kent
2003-01-18Merge the nathanw_sa branch.thorpej
2002-11-26Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.lukem
2002-09-06Merge the gehenna-devsw branch into the trunk.gehenna
This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
2002-08-07Implement pmc(9) -- An interface to hardware performance monitoringbriggs
counters. These counters do not exist on all CPUs, but where they do exist, can be used for counting events such as dcache misses that would otherwise be difficult or impossible to instrument by code inspection or hardware simulation. pmc(9) is meant to be a general interface. Initially, the Intel XScale counters are the only ones supported.
2002-05-09remove trap.huch
2002-03-28rework HD64461, HD64465 interrupt handling.uch