Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68545
b: refs/heads/master
c: c8c55bc
h: refs/heads/master
i:
  68543: 30ba5cc
v: v3
  • Loading branch information
Linus Torvalds committed Oct 13, 2007
1 parent 3b4f6b3 commit 6fea35b
Show file tree
Hide file tree
Showing 272 changed files with 15,492 additions and 5,928 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebf8889bd1fe3615991ff4494635d237280652a2
refs/heads/master: c8c55bcb43d790d97790cfa319d80045a71fde39
2 changes: 1 addition & 1 deletion trunk/Documentation/DocBook/deviceiobook.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ CPU B: spin_unlock_irqrestore(&dev_lock, flags)

<chapter id="pubfunctions">
<title>Public Functions Provided</title>
!Iinclude/asm-i386/io.h
!Iinclude/asm-x86/io_32.h
!Elib/iomap.c
</chapter>

Expand Down
18 changes: 9 additions & 9 deletions trunk/Documentation/DocBook/kernel-api.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
</sect1>

<sect1><title>Atomic and pointer manipulation</title>
!Iinclude/asm-i386/atomic.h
!Iinclude/asm-i386/unaligned.h
!Iinclude/asm-x86/atomic_32.h
!Iinclude/asm-x86/unaligned_32.h
</sect1>

<sect1><title>Delaying, scheduling, and timer routines</title>
Expand Down Expand Up @@ -119,7 +119,7 @@ X!Ilib/string.c
!Elib/string.c
</sect1>
<sect1><title>Bit Operations</title>
!Iinclude/asm-i386/bitops.h
!Iinclude/asm-x86/bitops_32.h
</sect1>
</chapter>

Expand Down Expand Up @@ -155,8 +155,8 @@ X!Ilib/string.c
!Emm/slab.c
</sect1>
<sect1><title>User Space Memory Access</title>
!Iinclude/asm-i386/uaccess.h
!Earch/i386/lib/usercopy.c
!Iinclude/asm-x86/uaccess_32.h
!Earch/x86/lib/usercopy_32.c
</sect1>
<sect1><title>More Memory Management Functions</title>
!Emm/readahead.c
Expand Down Expand Up @@ -293,7 +293,7 @@ X!Ekernel/module.c
</sect1>

<sect1><title>MTRR Handling</title>
!Earch/i386/kernel/cpu/mtrr/main.c
!Earch/x86/kernel/cpu/mtrr/main.c
</sect1>

<sect1><title>PCI Support Library</title>
Expand All @@ -316,14 +316,14 @@ X!Edrivers/pci/hotplug.c
<sect1><title>MCA Architecture</title>
<sect2><title>MCA Device Functions</title>
<para>
Refer to the file arch/i386/kernel/mca.c for more information.
Refer to the file arch/x86/kernel/mca_32.c for more information.
</para>
<!-- FIXME: Removed for now since no structured comments in source
X!Earch/i386/kernel/mca.c
X!Earch/x86/kernel/mca_32.c
-->
</sect2>
<sect2><title>MCA Bus DMA</title>
!Iinclude/asm-i386/mca_dma.h
!Iinclude/asm-x86/mca_dma.h
</sect2>
</sect1>
</chapter>
Expand Down
4 changes: 2 additions & 2 deletions trunk/Documentation/DocBook/kernel-hacking.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ static struct block_device_operations opt_fops = {
</para>

<para>
<filename>include/asm-i386/delay.h:</filename>
<filename>include/asm-x86/delay_32.h:</filename>
</para>
<programlisting>
#define ndelay(n) (__builtin_constant_p(n) ? \
Expand All @@ -1265,7 +1265,7 @@ static struct block_device_operations opt_fops = {
</programlisting>

<para>
<filename>include/asm-i386/uaccess.h:</filename>
<filename>include/asm-x86/uaccess_32.h:</filename>
</para>

<programlisting>
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/DocBook/mcabook.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

<chapter id="dmafunctions">
<title>DMA Functions Provided</title>
!Iinclude/asm-i386/mca_dma.h
!Iinclude/asm-x86/mca_dma.h
</chapter>

</book>
104 changes: 7 additions & 97 deletions trunk/arch/m68k/atari/atakeyb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* linux/atari/atakeyb.c
* linux/arch/m68k/atari/atakeyb.c
*
* Atari Keyboard driver for 680x0 Linux
*
Expand All @@ -11,6 +11,9 @@
/*
* Atari support by Robert de Vries
* enhanced by Bjoern Brauel and Roman Hodek
*
* 2.6 and input cleanup (removed autorepeat stuff) for 2.6.21
* 06/07 Michael Schmitz
*/

#include <linux/module.h>
Expand All @@ -32,7 +35,6 @@
#include <asm/atari_joystick.h>
#include <asm/irq.h>

static void atakeyb_rep(unsigned long ignore);
extern unsigned int keymap_count;

/* Hook for MIDI serial driver */
Expand Down Expand Up @@ -104,25 +106,6 @@ static unsigned long broken_keys[128/(sizeof(unsigned long)*8)] = { 0, };
* - Keypad Left/Right Parenthesis mapped to new K_PPAREN[LR]
*/

static u_short ataplain_map[NR_KEYS] __initdata = {
0xf200, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf008, 0xf009,
0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf200,
0xf703, 0xf020, 0xf207, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf200, 0xf200, 0xf114,
0xf603, 0xf200, 0xf30b, 0xf601, 0xf200, 0xf602, 0xf30a, 0xf200,
0xf600, 0xf200, 0xf115, 0xf07f, 0xf200, 0xf200, 0xf200, 0xf200,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf200, 0xf1ff, 0xf11b, 0xf312, 0xf313, 0xf30d, 0xf30c, 0xf307,
0xf308, 0xf309, 0xf304, 0xf305, 0xf306, 0xf301, 0xf302, 0xf303,
0xf300, 0xf310, 0xf30e, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200
};

typedef enum kb_state_t {
KEYBOARD, AMOUSE, RMOUSE, JOYSTICK, CLOCK, RESYNC
} KB_STATE_T;
Expand All @@ -137,41 +120,6 @@ typedef struct keyboard_state {

KEYBOARD_STATE kb_state;

#define DEFAULT_KEYB_REP_DELAY (HZ/4)
#define DEFAULT_KEYB_REP_RATE (HZ/25)

/* These could be settable by some ioctl() in future... */
static unsigned int key_repeat_delay = DEFAULT_KEYB_REP_DELAY;
static unsigned int key_repeat_rate = DEFAULT_KEYB_REP_RATE;

static unsigned char rep_scancode;
static struct timer_list atakeyb_rep_timer = {
.function = atakeyb_rep,
};

static void atakeyb_rep(unsigned long ignore)
{
/* Disable keyboard for the time we call handle_scancode(), else a race
* in the keyboard tty queue may happen */
atari_disable_irq(IRQ_MFP_ACIA);
del_timer(&atakeyb_rep_timer);

/* A keyboard int may have come in before we disabled the irq, so
* double-check whether rep_scancode is still != 0 */
if (rep_scancode) {
init_timer(&atakeyb_rep_timer);
atakeyb_rep_timer.expires = jiffies + key_repeat_rate;
add_timer(&atakeyb_rep_timer);

//handle_scancode(rep_scancode, 1);
if (atari_input_keyboard_interrupt_hook)
atari_input_keyboard_interrupt_hook(rep_scancode, 1);
}

atari_enable_irq(IRQ_MFP_ACIA);
}


/* ++roman: If a keyboard overrun happened, we can't tell in general how much
* bytes have been lost and in which state of the packet structure we are now.
* This usually causes keyboards bytes to be interpreted as mouse movements
Expand Down Expand Up @@ -209,9 +157,6 @@ static irqreturn_t atari_keyboard_interrupt(int irq, void *dummy)
/* ...happens often if interrupts were disabled for too long */
printk(KERN_DEBUG "Keyboard overrun\n");
scancode = acia.key_data;
/* Turn off autorepeating in case a break code has been lost */
del_timer(&atakeyb_rep_timer);
rep_scancode = 0;
if (ikbd_self_test)
/* During self test, don't do resyncing, just process the code */
goto interpret_scancode;
Expand Down Expand Up @@ -281,11 +226,12 @@ static irqreturn_t atari_keyboard_interrupt(int irq, void *dummy)
* make codes instead. Therefore, simply ignore
* break_flag...
*/
int keyval = plain_map[scancode], keytyp;
int keyval, keytyp;

set_bit(scancode, broken_keys);
self_test_last_rcv = jiffies;
keyval = plain_map[scancode];
/* new Linux scancodes; approx. */
keyval = scancode;
keytyp = KTYP(keyval) - 0xf0;
keyval = KVAL(keyval);

Expand All @@ -301,19 +247,6 @@ static irqreturn_t atari_keyboard_interrupt(int irq, void *dummy)
} else if (test_bit(scancode, broken_keys))
break;

#if 0 // FIXME; hangs at boot
if (break_flag) {
del_timer(&atakeyb_rep_timer);
rep_scancode = 0;
} else {
del_timer(&atakeyb_rep_timer);
rep_scancode = scancode;
atakeyb_rep_timer.expires = jiffies + key_repeat_delay;
add_timer(&atakeyb_rep_timer);
}
#endif

// handle_scancode(scancode, !break_flag);
if (atari_input_keyboard_interrupt_hook)
atari_input_keyboard_interrupt_hook((unsigned char)scancode, !break_flag);
break;
Expand Down Expand Up @@ -639,9 +572,6 @@ int __init atari_keyb_init(void)
if (atari_keyb_done)
return 0;

/* setup key map */
memcpy(key_maps[0], ataplain_map, sizeof(plain_map));

kb_state.state = KEYBOARD;
kb_state.len = 0;

Expand Down Expand Up @@ -704,26 +634,6 @@ int __init atari_keyb_init(void)
return 0;
}

int atari_kbdrate(struct kbd_repeat *k)
{
if (k->delay > 0) {
/* convert from msec to jiffies */
key_repeat_delay = (k->delay * HZ + 500) / 1000;
if (key_repeat_delay < 1)
key_repeat_delay = 1;
}
if (k->period > 0) {
key_repeat_rate = (k->period * HZ + 500) / 1000;
if (key_repeat_rate < 1)
key_repeat_rate = 1;
}

k->delay = key_repeat_delay * 1000 / HZ;
k->period = key_repeat_rate * 1000 / HZ;

return 0;
}

int atari_kbd_translate(unsigned char keycode, unsigned char *keycodep, char raw_mode)
{
#ifdef CONFIG_MAGIC_SYSRQ
Expand Down
53 changes: 40 additions & 13 deletions trunk/arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ endchoice

config SH_FPU
bool "FPU support"
depends on CPU_SH4
depends on CPU_HAS_FPU
default y
help
Selecting this option will enable support for SH processors that
Expand Down Expand Up @@ -178,12 +178,6 @@ config CPU_HAS_INTEVT
config CPU_HAS_MASKREG_IRQ
bool

config CPU_HAS_INTC_IRQ
bool

config CPU_HAS_INTC2_IRQ
bool

config CPU_HAS_IPR_IRQ
bool

Expand All @@ -205,6 +199,9 @@ config CPU_HAS_PTEA
config CPU_HAS_DSP
bool

config CPU_HAS_FPU
bool

endmenu

menu "Board support"
Expand Down Expand Up @@ -258,7 +255,6 @@ config SH_7780_SOLUTION_ENGINE
bool "SolutionEngine7780"
select SOLUTION_ENGINE
select SYS_SUPPORTS_PCI
select CPU_HAS_INTC2_IRQ
depends on CPU_SUBTYPE_SH7780
help
Select 7780 SolutionEngine if configuring for a Renesas SH7780
Expand Down Expand Up @@ -309,7 +305,7 @@ config SH_MPC1211

config SH_SH03
bool "Interface CTP/PCI-SH03"
depends on CPU_SUBTYPE_SH7751 && BROKEN
depends on CPU_SUBTYPE_SH7751
select CPU_HAS_IPR_IRQ
select SYS_SUPPORTS_PCI
help
Expand Down Expand Up @@ -395,11 +391,22 @@ config SH_LBOX_RE2
help
Select L-BOX RE2 if configuring for the NTT COMWARE L-BOX RE2.

config SH_X3PROTO
bool "SH-X3 Prototype board"
depends on CPU_SUBTYPE_SHX3

config SH_MAGIC_PANEL_R2
bool "Magic Panel R2"
depends on CPU_SUBTYPE_SH7720
help
Select Magic Panel R2 if configuring for Magic Panel R2.

endmenu

source "arch/sh/boards/renesas/hs7751rvoip/Kconfig"
source "arch/sh/boards/renesas/rts7751r2d/Kconfig"
source "arch/sh/boards/renesas/r7780rp/Kconfig"
source "arch/sh/boards/magicpanelr2/Kconfig"

menu "Timer and clock configuration"

Expand Down Expand Up @@ -563,10 +570,19 @@ config NR_CPUS

source "kernel/Kconfig.preempt"

config NODES_SHIFT
int
default "1"
depends on NEED_MULTIPLE_NODES
config GUSA
def_bool y
depends on !SMP
help
This enables support for gUSA (general UserSpace Atomicity).
This is the default implementation for both UP and non-ll/sc
CPUs, and is used by the libc, amongst others.

For additional information, design information can be found
in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.

This should only be disabled for special cases where alternate
atomicity implementations exist.

endmenu

Expand Down Expand Up @@ -659,6 +675,17 @@ config SUPERHYWAY
tristate "SuperHyway Bus support"
depends on CPU_SUBTYPE_SH4_202

config MAPLE
bool "Maple Bus support"
depends on SH_DREAMCAST
help
The Maple Bus is SEGA's serial communication bus for peripherals
on the Dreamcast. Without this bus support you won't be able to
get your Dreamcast keyboard etc to work, so most users
probably want to say 'Y' here, unless you are only using the
Dreamcast with a serial line terminal or a remote network
connection.

config CF_ENABLER
bool "Compact Flash Enabler support"
depends on SOLUTION_ENGINE || SH_SH03
Expand Down
Loading

0 comments on commit 6fea35b

Please sign in to comment.