Author: blueswirl
Date: 2008-12-23 11:15:14 +0100 (Tue, 23 Dec 2008)
New Revision: 312
Modified:
openbios-devel/arch/ppc/qemu/init.c
openbios-devel/drivers/adb.c
openbios-devel/drivers/kbd.c
openbios-devel/drivers/kbd.h
openbios-devel/drivers/pci.c
openbios-devel/include/openbios/pci.h
openbios-devel/modules/font_8x8.c
Log:
Change part_length to a define
Modified: openbios-devel/arch/ppc/qemu/init.c
===================================================================
--- openbios-devel/arch/ppc/qemu/init.c 2008-12-23 10:14:48 UTC (rev 311)
+++ openbios-devel/arch/ppc/qemu/init.c 2008-12-23 10:15:14 UTC (rev 312)
@@ -46,7 +46,7 @@
ARCH_HEATHROW,
};
-static pci_arch_t known_arch[] = {
+static const pci_arch_t known_arch[] = {
[ARCH_PREP] = { "PREP", 0x1057, 0x4801, 0x80800000, 0x800c0000,
0x80000000, 0x00100000, 0xf0000000, 0x10000000,
0x80000000, 0x00010000, 0x00000000, 0x00400000,
Modified: openbios-devel/drivers/adb.c
===================================================================
--- openbios-devel/drivers/adb.c 2008-12-23 10:14:48 UTC (rev 311)
+++ openbios-devel/drivers/adb.c 2008-12-23 10:15:14 UTC (rev 312)
@@ -65,7 +65,7 @@
*/
-static keymap_t ADB_kbd_us[] = {
+static const keymap_t ADB_kbd_us[] = {
/* 0x00 */
{ KBD_SH_CAPS, { 0x61, 0x41, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
Modified: openbios-devel/drivers/kbd.c
===================================================================
--- openbios-devel/drivers/kbd.c 2008-12-23 10:14:48 UTC (rev 311)
+++ openbios-devel/drivers/kbd.c 2008-12-23 10:15:14 UTC (rev 312)
@@ -30,7 +30,7 @@
#define KBD_DPRINTF(fmt, args...) do { } while (0)
#endif
-int kbd_set_keymap (kbd_t *kbd, int nb_keys, keymap_t *keymap)
+int kbd_set_keymap (kbd_t *kbd, int nb_keys, const keymap_t *keymap)
{
kbd->nb_keys = nb_keys;
kbd->keymap = keymap;
@@ -40,7 +40,7 @@
int kbd_translate_key (kbd_t *kbd, int keycode, int up_down)
{
- keymap_t *keyt;
+ const keymap_t *keyt;
int mod_state, key, type;
int ret;
Modified: openbios-devel/drivers/kbd.h
===================================================================
--- openbios-devel/drivers/kbd.h 2008-12-23 10:14:48 UTC (rev 311)
+++ openbios-devel/drivers/kbd.h 2008-12-23 10:15:14 UTC (rev 312)
@@ -34,7 +34,7 @@
* Right modifiers -----------+
*/
int nb_keys;
- keymap_t *keymap;
+ const keymap_t *keymap;
};
/* Modifiers */
@@ -97,7 +97,7 @@
};
void *kbd_new (int len);
-int kbd_set_keymap (kbd_t *kbd, int nb_keys, keymap_t *keymap);
+int kbd_set_keymap (kbd_t *kbd, int nb_keys, const keymap_t *keymap);
int kbd_translate_key (kbd_t *kbd, int keycode, int up_down);
#endif /* !defined (__OHW_KBD_H__) */
Modified: openbios-devel/drivers/pci.c
===================================================================
--- openbios-devel/drivers/pci.c 2008-12-23 10:14:48 UTC (rev 311)
+++ openbios-devel/drivers/pci.c 2008-12-23 10:15:14 UTC (rev 312)
@@ -33,7 +33,7 @@
/* DECLARE data structures for the nodes. */
DECLARE_UNNAMED_NODE( ob_pci_node, INSTALL_OPEN, 2*sizeof(int) );
-pci_arch_t *arch;
+const pci_arch_t *arch;
static void
ob_pci_open(int *idx)
Modified: openbios-devel/include/openbios/pci.h
===================================================================
--- openbios-devel/include/openbios/pci.h 2008-12-23 10:14:48 UTC (rev 311)
+++ openbios-devel/include/openbios/pci.h 2008-12-23 10:15:14 UTC (rev 312)
@@ -21,6 +21,6 @@
unsigned long rlen;
};
-extern pci_arch_t *arch;
+extern const pci_arch_t *arch;
#endif /* _H_PCI */
Modified: openbios-devel/modules/font_8x8.c
===================================================================
--- openbios-devel/modules/font_8x8.c 2008-12-23 10:14:48 UTC (rev 311)
+++ openbios-devel/modules/font_8x8.c 2008-12-23 10:15:14 UTC (rev 312)
@@ -8,7 +8,7 @@
#define FONT_WIDTH 8
#define FONT_HEIGHT 8
-static unsigned char fontdata[FONTDATAMAX] = {
+static const unsigned char fontdata[FONTDATAMAX] = {
/* 0 0x00 '^@' */
0x00, /* 00000000 */