summaryrefslogtreecommitdiff
path: root/sys/arch/dreamcast/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-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-10-23fix build failure on dreamcast.knakahara
2015-06-11Add avail_start, avail_end declarations.matt
2014-03-29make pci_intr_string and eisa_intr_string take a buffer and a lengthchristos
instead of relying in local static storage.
2012-10-27split device_t/softc for all remaining drivers.chs
replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
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-19Change <machine/bus.h> to <sys/bus.h> throughout.dyoung
Split bus.h -> bus_{defs,funcs}.h. Mark dreamcast/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-01Fix typo in pci_intr_disestablish(9) macro.tsutsui
2009-08-23Add an empty bus_space_mmap(9) function as temporary workaroundtsutsui
for MI pci(4) mmap function in sys/dev/pci/pci_usrreq.c. XXX: no bus_space_subregion(9) for g2bus.
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-12IRL line connected to each device on sysasic is not always correspondingtsutsui
with MI IPL_* definitions, so add an independent arg to pass IRL lines to sysasic_intr_establish() and use appropriate macro for them.
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-09-20Switch the rest of sh3 ports to todr(9)uwe
Split code to handle on-chip rtc into a separate driver Eliminate all todr code from clock.c Move __HAVE_GENERIC_TODR to sh3/include/types.h
2006-09-05Switch dreamcast to MI todr(9).uwe
Dreamcast does not use SuperH on-chip RTC, so do it seprately from other sh3 ports. Convert dreamcast rtc code into a real device instead of searching/attaching it manually. Tested by Nick Hudson.
2006-07-26don't install <machine/db_machdep.h>, this is kernel onlydrochner
2005-12-24__asm__ -> __asmperry
__const__ -> const __inline__ -> inline __volatile__ -> volatile
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-06-02Fix const fallout.he
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.
2005-02-19u_intNN_t -> uintNN_ttsutsui
2004-07-29remove now unnecessary "pci_enumerate_bus" definitionsdrochner
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-05-08Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.kleink
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-06-14Add kloader (in-kernel kernel bootloader) support written bytsutsui
UCHIYAMA Yasushi (uch@netbsd). XXX Some of these code should be moved into MI place to share XXX between other ports.
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-17Merge the nathanw_sa branch.thorpej
2002-12-27Add support for SEGA LAN Adapter, MB86967 based Ethernet adapter.tsutsui
Based on the patches in port-dreamcast/17493 by Christian Groessler, with several modification by me.
2002-11-26Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.lukem
2002-11-15Allow multiple event handlers to be installed to an IRL.itohy
The IRL is specified as IPL (2nd arg of sysasic_intr_establish()). Current mapping: IRL9 IPL_BIO IRL11 IPL_NET IRL13 IPL_TTY
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.