Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch bootinfo.h, config_hook.h, platid.h are moved to hp...



details:   https://anonhg.NetBSD.org/src/rev/9a0e0ae67626
branches:  trunk
changeset: 521539:9a0e0ae67626
user:      uch <uch%NetBSD.org@localhost>
date:      Fri Feb 01 18:16:03 2002 +0000

description:
bootinfo.h, config_hook.h, platid.h are moved to hpc/include

diffstat:

 sys/arch/hpc/hpc/bootinfo.h                       |   99 ------
 sys/arch/hpc/hpc/config_hook.h                    |  337 ----------------------
 sys/arch/hpc/hpc/platid.h                         |  155 ----------
 sys/arch/hpc/include/bootinfo.h                   |   99 ++++++
 sys/arch/hpc/include/config_hook.h                |  337 ++++++++++++++++++++++
 sys/arch/hpc/include/platid.h                     |  155 ++++++++++
 sys/arch/hpc/stand/include/machine/bootinfo.h     |    4 +-
 sys/arch/hpc/stand/include/machine/platid.h       |    4 +-
 sys/arch/hpcarm/hpcarm/hpc_machdep.c              |    4 +-
 sys/arch/hpcarm/include/bootinfo.h                |    4 +-
 sys/arch/hpcarm/include/config_hook.h             |    4 +-
 sys/arch/hpcarm/include/platid.h                  |    4 +-
 sys/arch/hpcmips/include/bootinfo.h               |    4 +-
 sys/arch/hpcmips/include/config_hook.h            |    4 +-
 sys/arch/hpcmips/include/platid.h                 |    4 +-
 sys/arch/hpcmips/stand/include/machine/bootinfo.h |    2 +-
 sys/arch/hpcmips/stand/include/machine/platid.h   |    2 +-
 sys/arch/hpcsh/include/bootinfo.h                 |    4 +-
 sys/arch/hpcsh/include/config_hook.h              |    4 +-
 sys/arch/hpcsh/include/platid.h                   |    4 +-
 20 files changed, 617 insertions(+), 617 deletions(-)

diffs (truncated from 1344 to 300 lines):

diff -r de6f0ed125d5 -r 9a0e0ae67626 sys/arch/hpc/hpc/bootinfo.h
--- a/sys/arch/hpc/hpc/bootinfo.h       Fri Feb 01 17:52:54 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,99 +0,0 @@
-/*     $NetBSD: bootinfo.h,v 1.1 2001/01/28 02:52:16 uch Exp $ */
-
-/*-
- * Copyright (c) 1999-2001
- *         Shin Takemura and PocketBSD Project. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the PocketBSD project
- *     and its contributors.
- * 4. Neither the name of the project nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- */
-
-#ifndef _HPC_BOOTINFO_H_
-#define _HPC_BOOTINFO_H_
-
-struct bootinfo {
-       short length;
-       short reserved;
-       int magic;
-       void *fb_addr;
-       short fb_line_bytes;
-       short fb_width;
-       short fb_height;
-       short fb_type;
-
-       short bi_cnuse;
-       unsigned long platid_cpu;
-       unsigned long platid_machine;
-
-       long timezone;
-};
-
-#define BI_CNUSE_BUILTIN       (1<<0)
-#define BI_CNUSE_SERIAL                (1<<1)
-
-extern struct bootinfo *bootinfo;
-#define        BOOTINFO_MAGIC  0x13536135
-
-#define BIFB_D2_M2L_3          0
-#define BIFBN_D2_M2L_3         "D2_M2L_3"
-
-#define BIFB_D2_M2L_3x2                1
-#define BIFBN_D2_M2L_3x2       "D2_M2L_3x2"
-
-#define BIFB_D2_M2L_0          2
-#define BIFBN_D2_M2L_0         "D2_M2L_0"
-
-#define BIFB_D8_00             3
-#define BIFBN_D8_00            "D8_00"
-
-#define BIFB_D8_FF             4
-#define BIFBN_D8_FF            "D8_FF"
-
-#define BIFB_D16_0000          5
-#define BIFBN_D16_0000         "D16_0000"
-
-#define BIFB_D16_FFFF          6
-#define BIFBN_D16_FFFF         "D16_FFFF"
-
-#define BIFB_D2_M2L_0x2                7
-#define BIFBN_D2_M2L_0x2       "D2_M2L_0x2"
-
-#define BIFB_D4_M2L_F          8
-#define BIFBN_D4_M2L_F         "D4_M2L_F"
-
-#define BIFB_D4_M2L_Fx2                9
-#define BIFBN_D4_M2L_Fx2       "D4_M2L_Fx2"
-
-#define BIFB_D4_M2L_0          10
-#define BIFBN_D4_M2L_0         "D4_M2L_0"
-
-#define BIFB_D4_M2L_0x2                11
-#define BIFBN_D4_M2L_0x2       "D4_M2L_0x2"
-
-#endif /* _HPC_BOOTINFO_H_ */
diff -r de6f0ed125d5 -r 9a0e0ae67626 sys/arch/hpc/hpc/config_hook.h
--- a/sys/arch/hpc/hpc/config_hook.h    Fri Feb 01 17:52:54 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,337 +0,0 @@
-/*     $NetBSD: config_hook.h,v 1.7 2002/01/20 03:34:27 shin Exp $     */
-
-/*-
- * Copyright (c) 1999-2001
- *         Shin Takemura and PocketBSD Project. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the PocketBSD project
- *     and its contributors.
- * 4. Neither the name of the project nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- */
-
-#ifndef _CONFIG_HOOK_H_
-#define _CONFIG_HOOK_H_
-
-enum config_hook_mode {
-       CONFIG_HOOK_SHARE,
-       CONFIG_HOOK_REPLACE,
-       CONFIG_HOOK_EXCLUSIVE,
-};
-
-typedef void *config_hook_tag;
-typedef void *config_call_tag;
-
-void   config_hook_init(void);
-config_hook_tag config_hook(int, long, enum config_hook_mode,
-    int (*func)(void *, int, long, void *), void *);
-void   config_unhook(config_hook_tag);
-int    config_hook_call(int, long, void *);
-config_call_tag config_connect(int, long);
-void   config_disconnect(config_call_tag crx);
-int    config_connected_call(config_call_tag, void *);
-
-/*
- * hook types and IDs
- */
-/* apm releted events */
-#define CONFIG_HOOK_PMEVENT            0
-#define CONFIG_HOOK_PMEVENT_STANDBYREQ         0
-#define CONFIG_HOOK_PMEVENT_SUSPENDREQ         1
-#define CONFIG_HOOK_PMEVENT_HARDPOWER          2
-#define CONFIG_HOOK_PMEVENT_BATTERY            3
-#define CONFIG_HOOK_PMEVENT_AC                 4
-
-
-/* get value */
-#define CONFIG_HOOK_GET                        1
-/* set value and send event */
-#define CONFIG_HOOK_SET                        2
-/* external event */
-#define CONFIG_HOOK_EVENT              CONFIG_HOOK_SET
-
-
-/* CONFIG_HOOK_GET/CONFIG_HOOK_SET/CONFIG_HOOK_EVENT event id's */
-#define CONFIG_HOOK_POWER_COM0                 0
-#define CONFIG_HOOK_POWER_COM1                 1
-#define CONFIG_HOOK_POWER_COM2                 2
-#define CONFIG_HOOK_POWER_COM3                 3
-#define CONFIG_HOOK_POWER_LCDLIGHT             4
-#define CONFIG_HOOK_POWER_LCD                  5
-#define CONFIG_HOOK_POWER_SPEAKER              6
-#define CONFIG_HOOK_BUTTON_POWER               7
-#define CONFIG_HOOK_BUTTON_OK                  8
-#define CONFIG_HOOK_BUTTON_CANCEL              9
-#define CONFIG_HOOK_BUTTON_UP                  10
-#define CONFIG_HOOK_BUTTON_DOWN                        11
-#define CONFIG_HOOK_BUTTON_REC                 12
-#define CONFIG_HOOK_BUTTON_COVER               13
-#define CONFIG_HOOK_BUTTON_LIGHT               14
-#define CONFIG_HOOK_BUTTON_CONTRAST            15
-#define CONFIG_HOOK_BUTTON_APP0                        16
-#define CONFIG_HOOK_BUTTON_APP1                        17
-#define CONFIG_HOOK_BUTTON_APP2                        18
-#define CONFIG_HOOK_BUTTON_APP3                        19
-#define CONFIG_HOOK_BUTTON_LEFT                        20
-#define CONFIG_HOOK_BUTTON_RIGHT               21
-#define CONFIG_HOOK_BUTTON_CONTRAST_UP         22
-#define CONFIG_HOOK_BUTTON_CONTRAST_DOWN       23
-#define CONFIG_HOOK_BUTTON_LIGHT_UP            24
-#define CONFIG_HOOK_BUTTON_LIGHT_DOWN          25
-#define CONFIG_HOOK_LED                                26
-#define CONFIG_HOOK_LED_MAX                    27
-#define CONFIG_HOOK_CONTRAST                   28
-#define CONFIG_HOOK_CONTRAST_MAX               29
-#define CONFIG_HOOK_BRIGHTNESS                 30
-#define CONFIG_HOOK_BRIGHTNESS_MAX             31
-#define CONFIG_HOOK_COM0_CTS                   32
-#define CONFIG_HOOK_COM1_CTS                   33
-#define CONFIG_HOOK_COM2_CTS                   34
-#define CONFIG_HOOK_COM3_CTS                   35
-#define CONFIG_HOOK_COM0_DCD                   36
-#define CONFIG_HOOK_COM1_DCD                   37
-#define CONFIG_HOOK_COM2_DCD                   38
-#define CONFIG_HOOK_COM3_DCD                   39
-#define CONFIG_HOOK_COM0_RTS                   40
-#define CONFIG_HOOK_COM1_RTS                   41
-#define CONFIG_HOOK_COM2_RTS                   42
-#define CONFIG_HOOK_COM3_RTS                   43
-#define CONFIG_HOOK_COM0_DTR                   44
-#define CONFIG_HOOK_COM1_DTR                   45
-#define CONFIG_HOOK_COM2_DTR                   46
-#define CONFIG_HOOK_COM3_DTR                   47
-#define CONFIG_HOOK_BATTERYVAL                 48
-#define CONFIG_HOOK_ACADAPTER                  49
-#define CONFIG_HOOK_CHARGE                     50
-
-/* power control type */
-#define CONFIG_HOOK_POWERCONTROL       3
-#define CONFIG_HOOK_POWERCONTROL_COM0          CONFIG_HOOK_POWER_COM0
-#define CONFIG_HOOK_POWERCONTROL_COM1          CONFIG_HOOK_POWER_COM1
-#define CONFIG_HOOK_POWERCONTROL_COM2          CONFIG_HOOK_POWER_COM2
-#define CONFIG_HOOK_POWERCONTROL_COM3          CONFIG_HOOK_POWER_COM3
-#define CONFIG_HOOK_POWERCONTROL_LCDLIGHT      CONFIG_HOOK_POWER_LCDLIGHT
-#define CONFIG_HOOK_POWERCONTROL_LCD           CONFIG_HOOK_POWER_LCD
-#define CONFIG_HOOK_POWERCONTROL_SPEAKER       CONFIG_HOOK_POWER_SPEAKER
-#define CONFIG_HOOK_POWERCONTROL_LED           CONFIG_HOOK_LED
-
-/* button event type */
-#define CONFIG_HOOK_BUTTONEVENT                4
-#define CONFIG_HOOK_BUTTONEVENT_POWER          CONFIG_HOOK_BUTTON_POWER
-#define CONFIG_HOOK_BUTTONEVENT_OK             CONFIG_HOOK_BUTTON_OK
-#define CONFIG_HOOK_BUTTONEVENT_CANCEL         CONFIG_HOOK_BUTTON_CANCEL
-#define CONFIG_HOOK_BUTTONEVENT_UP             CONFIG_HOOK_BUTTON_UP
-#define CONFIG_HOOK_BUTTONEVENT_DOWN           CONFIG_HOOK_BUTTON_DOWN
-#define CONFIG_HOOK_BUTTONEVENT_REC            CONFIG_HOOK_BUTTON_REC
-#define CONFIG_HOOK_BUTTONEVENT_COVER          CONFIG_HOOK_BUTTON_COVER
-#define CONFIG_HOOK_BUTTONEVENT_LIGHT          CONFIG_HOOK_BUTTON_LIGHT
-#define CONFIG_HOOK_BUTTONEVENT_CONTRAST       CONFIG_HOOK_BUTTON_CONTRAST
-#define CONFIG_HOOK_BUTTONEVENT_APP0           CONFIG_HOOK_BUTTON_APP0
-#define CONFIG_HOOK_BUTTONEVENT_APP1           CONFIG_HOOK_BUTTON_APP1
-#define CONFIG_HOOK_BUTTONEVENT_APP2           CONFIG_HOOK_BUTTON_APP2
-#define CONFIG_HOOK_BUTTONEVENT_APP3           CONFIG_HOOK_BUTTON_APP3
-#define CONFIG_HOOK_BUTTONEVENT_LEFT           CONFIG_HOOK_BUTTON_LEFT
-#define CONFIG_HOOK_BUTTONEVENT_RIGHT          CONFIG_HOOK_BUTTON_RIGHT
-#define CONFIG_HOOK_BUTTONEVENT_CONTRAST_UP    CONFIG_HOOK_BUTTON_CONTRAST_UP
-#define CONFIG_HOOK_BUTTONEVENT_CONTRAST_DOWN  CONFIG_HOOK_BUTTON_CONTRAST_DOWN
-#define CONFIG_HOOK_BUTTONEVENT_LIGHT_UP       CONFIG_HOOK_BUTTON_LIGHT_UP
-#define CONFIG_HOOK_BUTTONEVENT_LIGHT_DOWN     CONFIG_HOOK_BUTTON_LIGHT_DOWN
-
-/* PCI interrupt type */
-#define CONFIG_HOOK_PCIINTR            5
-#define CONFIG_HOOK_PCIINTR_ID(bus, dev, func) \
-       (((bus) << 16) | ((dev) << 11) | ((func) << 8))
-#define CONFIG_HOOK_PCIINTR_BUS(id)            (((id) >> 16) & 0xff)
-#define CONFIG_HOOK_PCIINTR_DEVICE(id)         (((id) >> 11) & 0x1f)
-#define CONFIG_HOOK_PCIINTR_FUNCTION(id)       (((id) >>  8) & 0x07)
-
-#define CONFIG_HOOK_NTYPES             6
-
-/*
- * nicknames for including from configration file.
- */
-#ifdef CONFIG_HOOK_DEFINE_NICKNAME
-/* type nicknames */
-#define PMEVENT                CONFIG_HOOK_PMEVENT
-#define SET            CONFIG_HOOK_SET
-#define EVENT          CONFIG_HOOK_EVENT
-#define GET            CONFIG_HOOK_GET
-#define POWER          CONFIG_HOOK_POWERCONTROL
-#define BUTTON         CONFIG_HOOK_BUTTONEVENT
-#define PCIINTR                CONFIG_HOOK_PCIINTR
-
-/* ID nicknames */
-/* power contorol */
-#define PWCTL_COM0     CONFIG_HOOK_POWER_COM0
-#define PWCTL_COM1     CONFIG_HOOK_POWER_COM1
-#define PWCTL_COM2     CONFIG_HOOK_POWER_COM2
-#define PWCTL_COM3     CONFIG_HOOK_POWER_COM3
-#define PWCTL_LCDLIGHT CONFIG_HOOK_POWER_LCDLIGHT



Home | Main Index | Thread Index | Old Index