diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-11-18 11:30:38 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-18 11:30:38 -0500 |
commit | 79bfb0a98fdc73ed6a18469cef245cbf50a1d8bb (patch) | |
tree | faf5312c25eebfa11bd1f65c881bfac07c945f2b /include/linux | |
parent | 67cb6e842e7f1e534a5e0e8708a8779e33b60520 (diff) | |
parent | fc71fe40d2bedcc57d3406bf2050481f8b3441b6 (diff) |
Merge branch 'master'
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ds17287rtc.h | 67 | ||||
-rw-r--r-- | include/linux/ds1742rtc.h | 53 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 1 |
3 files changed, 121 insertions, 0 deletions
diff --git a/include/linux/ds17287rtc.h b/include/linux/ds17287rtc.h new file mode 100644 index 000000000000..c281ba42e28f --- /dev/null +++ b/include/linux/ds17287rtc.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * ds17287rtc.h - register definitions for the ds1728[57] RTC / CMOS RAM | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | * | ||
8 | * (C) 2003 Guido Guenther <agx@sigxcpu.org> | ||
9 | */ | ||
10 | #ifndef __LINUX_DS17287RTC_H | ||
11 | #define __LINUX_DS17287RTC_H | ||
12 | |||
13 | #include <linux/rtc.h> /* get the user-level API */ | ||
14 | #include <linux/spinlock.h> /* spinlock_t */ | ||
15 | #include <linux/mc146818rtc.h> | ||
16 | |||
17 | /* Register A */ | ||
18 | #define DS_REGA_DV2 0x40 /* countdown chain */ | ||
19 | #define DS_REGA_DV1 0x20 /* oscillator enable */ | ||
20 | #define DS_REGA_DV0 0x10 /* bank select */ | ||
21 | |||
22 | /* bank 1 registers */ | ||
23 | #define DS_B1_MODEL 0x40 /* model number byte */ | ||
24 | #define DS_B1_SN1 0x41 /* serial number byte 1 */ | ||
25 | #define DS_B1_SN2 0x42 /* serial number byte 2 */ | ||
26 | #define DS_B1_SN3 0x43 /* serial number byte 3 */ | ||
27 | #define DS_B1_SN4 0x44 /* serial number byte 4 */ | ||
28 | #define DS_B1_SN5 0x45 /* serial number byte 5 */ | ||
29 | #define DS_B1_SN6 0x46 /* serial number byte 6 */ | ||
30 | #define DS_B1_CRC 0x47 /* CRC byte */ | ||
31 | #define DS_B1_CENTURY 0x48 /* Century byte */ | ||
32 | #define DS_B1_DALARM 0x49 /* date alarm */ | ||
33 | #define DS_B1_XCTRL4A 0x4a /* extendec control register 4a */ | ||
34 | #define DS_B1_XCTRL4B 0x4b /* extendec control register 4b */ | ||
35 | #define DS_B1_RTCADDR2 0x4e /* rtc address 2 */ | ||
36 | #define DS_B1_RTCADDR3 0x4f /* rtc address 3 */ | ||
37 | #define DS_B1_RAMLSB 0x50 /* extended ram LSB */ | ||
38 | #define DS_B1_RAMMSB 0x51 /* extended ram MSB */ | ||
39 | #define DS_B1_RAMDPORT 0x53 /* extended ram data port */ | ||
40 | |||
41 | /* register details */ | ||
42 | /* extended control register 4a */ | ||
43 | #define DS_XCTRL4A_VRT2 0x80 /* valid ram and time */ | ||
44 | #define DS_XCTRL4A_INCR 0x40 /* increment progress status */ | ||
45 | #define DS_XCTRL4A_BME 0x20 /* burst mode enable */ | ||
46 | #define DS_XCTRL4A_PAB 0x08 /* power active bar ctrl */ | ||
47 | #define DS_XCTRL4A_RF 0x04 /* ram clear flag */ | ||
48 | #define DS_XCTRL4A_WF 0x02 /* wake up alarm flag */ | ||
49 | #define DS_XCTRL4A_KF 0x01 /* kickstart flag */ | ||
50 | |||
51 | /* interrupt causes */ | ||
52 | #define DS_XCTRL4A_IFS (DS_XCTRL4A_RF|DS_XCTRL4A_WF|DS_XCTRL4A_KF) | ||
53 | |||
54 | /* extended control register 4b */ | ||
55 | #define DS_XCTRL4B_ABE 0x80 /* auxiliary battery enable */ | ||
56 | #define DS_XCTRL4B_E32K 0x40 /* enable 32.768 kHz Output */ | ||
57 | #define DS_XCTRL4B_CS 0x20 /* crystal select */ | ||
58 | #define DS_XCTRL4B_RCE 0x10 /* ram clear enable */ | ||
59 | #define DS_XCTRL4B_PRS 0x08 /* PAB resec select */ | ||
60 | #define DS_XCTRL4B_RIE 0x04 /* ram clear interrupt enable */ | ||
61 | #define DS_XCTRL4B_WFE 0x02 /* wake up alarm interrupt enable */ | ||
62 | #define DS_XCTRL4B_KFE 0x01 /* kickstart interrupt enable */ | ||
63 | |||
64 | /* interrupt enable bits */ | ||
65 | #define DS_XCTRL4B_IFES (DS_XCTRL4B_RIE|DS_XCTRL4B_WFE|DS_XCTRL4B_KFE) | ||
66 | |||
67 | #endif /* __LINUX_DS17287RTC_H */ | ||
diff --git a/include/linux/ds1742rtc.h b/include/linux/ds1742rtc.h new file mode 100644 index 000000000000..a83cdd1cafc9 --- /dev/null +++ b/include/linux/ds1742rtc.h | |||
@@ -0,0 +1,53 @@ | |||
1 | /* | ||
2 | * ds1742rtc.h - register definitions for the Real-Time-Clock / CMOS RAM | ||
3 | * | ||
4 | * Copyright (C) 1999-2001 Toshiba Corporation | ||
5 | * Copyright (C) 2003 Ralf Baechle (ralf@linux-mips.org) | ||
6 | * | ||
7 | * Permission is hereby granted to copy, modify and redistribute this code | ||
8 | * in terms of the GNU Library General Public License, Version 2 or later, | ||
9 | * at your option. | ||
10 | */ | ||
11 | #ifndef __LINUX_DS1742RTC_H | ||
12 | #define __LINUX_DS1742RTC_H | ||
13 | |||
14 | #include <asm/ds1742.h> | ||
15 | |||
16 | #define RTC_BRAM_SIZE 0x800 | ||
17 | #define RTC_OFFSET 0x7f8 | ||
18 | |||
19 | /* | ||
20 | * Register summary | ||
21 | */ | ||
22 | #define RTC_CONTROL (RTC_OFFSET + 0) | ||
23 | #define RTC_CENTURY (RTC_OFFSET + 0) | ||
24 | #define RTC_SECONDS (RTC_OFFSET + 1) | ||
25 | #define RTC_MINUTES (RTC_OFFSET + 2) | ||
26 | #define RTC_HOURS (RTC_OFFSET + 3) | ||
27 | #define RTC_DAY (RTC_OFFSET + 4) | ||
28 | #define RTC_DATE (RTC_OFFSET + 5) | ||
29 | #define RTC_MONTH (RTC_OFFSET + 6) | ||
30 | #define RTC_YEAR (RTC_OFFSET + 7) | ||
31 | |||
32 | #define RTC_CENTURY_MASK 0x3f | ||
33 | #define RTC_SECONDS_MASK 0x7f | ||
34 | #define RTC_DAY_MASK 0x07 | ||
35 | |||
36 | /* | ||
37 | * Bits in the Control/Century register | ||
38 | */ | ||
39 | #define RTC_WRITE 0x80 | ||
40 | #define RTC_READ 0x40 | ||
41 | |||
42 | /* | ||
43 | * Bits in the Seconds register | ||
44 | */ | ||
45 | #define RTC_STOP 0x80 | ||
46 | |||
47 | /* | ||
48 | * Bits in the Day register | ||
49 | */ | ||
50 | #define RTC_BATT_FLAG 0x80 | ||
51 | #define RTC_FREQ_TEST 0x40 | ||
52 | |||
53 | #endif /* __LINUX_DS1742RTC_H */ | ||
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index d4c1c8fd2925..7b387faedb4d 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -1401,6 +1401,7 @@ | |||
1401 | #define PCI_SUBDEVICE_ID_KEYSPAN_SX2 0x5334 | 1401 | #define PCI_SUBDEVICE_ID_KEYSPAN_SX2 0x5334 |
1402 | 1402 | ||
1403 | #define PCI_VENDOR_ID_MARVELL 0x11ab | 1403 | #define PCI_VENDOR_ID_MARVELL 0x11ab |
1404 | #define PCI_DEVICE_ID_MARVELL_GT64111 0x4146 | ||
1404 | #define PCI_DEVICE_ID_MARVELL_GT64260 0x6430 | 1405 | #define PCI_DEVICE_ID_MARVELL_GT64260 0x6430 |
1405 | #define PCI_DEVICE_ID_MARVELL_MV64360 0x6460 | 1406 | #define PCI_DEVICE_ID_MARVELL_MV64360 0x6460 |
1406 | #define PCI_DEVICE_ID_MARVELL_MV64460 0x6480 | 1407 | #define PCI_DEVICE_ID_MARVELL_MV64460 0x6480 |