hugetlb: introduce generic version of hugetlb_free_pgd_range
[linux/fpc-iii.git] / arch / sh / include / mach-common / mach / hp6xx.h
blob6aaaf8596e6a823c0c17b74bb55849e46e97818d
1 #ifndef __ASM_SH_HP6XX_H
2 #define __ASM_SH_HP6XX_H
4 /*
5 * Copyright (C) 2003, 2004, 2005 Andriy Skulysh
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
9 * for more details.
12 #include <linux/sh_intc.h>
14 #define HP680_BTN_IRQ evt2irq(0x600) /* IRQ0_IRQ */
15 #define HP680_TS_IRQ evt2irq(0x660) /* IRQ3_IRQ */
16 #define HP680_HD64461_IRQ evt2irq(0x680) /* IRQ4_IRQ */
18 #define DAC_LCD_BRIGHTNESS 0
19 #define DAC_SPEAKER_VOLUME 1
21 #define PGDR_OPENED 0x01
22 #define PGDR_MAIN_BATTERY_OUT 0x04
23 #define PGDR_PLAY_BUTTON 0x08
24 #define PGDR_REWIND_BUTTON 0x10
25 #define PGDR_RECORD_BUTTON 0x20
27 #define PHDR_TS_PEN_DOWN 0x08
29 #define PJDR_LED_BLINK 0x02
31 #define PKDR_LED_GREEN 0x10
33 /* HP Palmtop 620lx/660lx speaker on/off */
34 #define PKDR_SPEAKER 0x20
36 #define SCPDR_TS_SCAN_ENABLE 0x20
37 #define SCPDR_TS_SCAN_Y 0x02
38 #define SCPDR_TS_SCAN_X 0x01
40 #define SCPCR_TS_ENABLE 0x405
41 #define SCPCR_TS_MASK 0xc0f
43 #define ADC_CHANNEL_TS_Y 1
44 #define ADC_CHANNEL_TS_X 2
45 #define ADC_CHANNEL_BATTERY 3
46 #define ADC_CHANNEL_BACKUP 4
47 #define ADC_CHANNEL_CHARGE 5
49 /* HP Jornada 680/690 speaker on/off */
50 #define HD64461_GPADR_SPEAKER 0x01
51 #define HD64461_GPADR_PCMCIA0 (0x02|0x08)
53 #define HD64461_GPBDR_LCDOFF 0x01
54 #define HD64461_GPBDR_LCD_CONTRAST_MASK 0x78
55 #define HD64461_GPBDR_LED_RED 0x80
57 #include <asm/hd64461.h>
58 #include <asm/io.h>
60 #define PJDR 0xa4000130
61 #define PKDR 0xa4000132
63 #endif /* __ASM_SH_HP6XX_H */