Add #include guards to all Super I/O header files (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6049 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _SUPERIO_SMSC_FDC37M60X
|
||||
#define _SUPERIO_SMSC_FDC37M60X
|
||||
#ifndef SUPERIO_SMSC_FDC37M60X_CHIP_H
|
||||
#define SUPERIO_SMSC_FDC37M60X_CHIP_H
|
||||
|
||||
#include <device/device.h>
|
||||
#include <pc80/keyboard.h>
|
||||
@@ -32,4 +32,4 @@ struct superio_smsc_fdc37m60x_config {
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif /* _SUPERIO_SMSC_FDC37M60X */
|
||||
#endif
|
||||
|
@@ -18,6 +18,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_FDC37M60X_FDC37M60X_H
|
||||
#define SUPERIO_SMSC_FDC37M60X_FDC37M60X_H
|
||||
|
||||
/*
|
||||
* Datasheet:
|
||||
* - Name: FDC37M60x Enhanced Super I/O Controller with Infrared Support.
|
||||
@@ -36,3 +39,5 @@
|
||||
#define FDC37M60X_SP2 0x05 /* Com2 */
|
||||
#define FDC37M60X_KBCK 0x07 /* Keyboard */
|
||||
#define FDC37M60X_AUX 0x08 /* Auxiliary I/O */
|
||||
|
||||
#endif
|
||||
|
@@ -17,8 +17,8 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _SUPERIO_SMSC_FDC37N972
|
||||
#define _SUPERIO_SMSC_FDC37N972
|
||||
#ifndef SUPERIO_SMSC_FDC37N972_CHIP_H
|
||||
#define SUPERIO_SMSC_FDC37N972_CHIP_H
|
||||
|
||||
#include <device/device.h>
|
||||
#include <pc80/keyboard.h>
|
||||
@@ -31,5 +31,5 @@ struct superio_smsc_fdc37n972_config {
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif /* _SUPERIO_SMSC_FDC37N972 */
|
||||
#endif
|
||||
|
||||
|
@@ -17,6 +17,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_FDC37N972_FDC37N972_H
|
||||
#define SUPERIO_SMSC_FDC37N972_FDC37N972_H
|
||||
|
||||
#define FDC37N972_FDC 0x00 /* Floppy */
|
||||
#define FDC37N972_PP 0x03 /* Parallel port */
|
||||
#define FDC37N972_SP1 0x04 /* Serial port 1 */
|
||||
@@ -26,3 +29,4 @@
|
||||
#define FDC37N972_EC 0x08 /* Environmental Controller */
|
||||
#define FDC37N972_MBX 0x09 /* Mailbox register */
|
||||
|
||||
#endif
|
||||
|
@@ -18,6 +18,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47B272_CHIP_H
|
||||
#define SUPERIO_SMSC_LPC47B272_CHIP_H
|
||||
|
||||
struct chip_operations;
|
||||
extern struct chip_operations superio_smsc_lpc47b272_ops;
|
||||
|
||||
@@ -28,3 +31,5 @@ struct superio_smsc_lpc47b272_config {
|
||||
struct uart8250 com1, com2;
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -18,6 +18,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47B272_LPC47B272_H
|
||||
#define SUPERIO_SMSC_LPC47B272_LPC47B272_H
|
||||
|
||||
#define LPC47B272_FDC 0 /* Floppy */
|
||||
#define LPC47B272_PP 3 /* Parallel Port */
|
||||
#define LPC47B272_SP1 4 /* Com1 */
|
||||
@@ -26,3 +29,5 @@
|
||||
#define LPC47B272_RT 10 /* Runtime reg*/
|
||||
|
||||
#define LPC47B272_MAX_CONFIG_REGISTER 0x5F
|
||||
|
||||
#endif
|
||||
|
@@ -20,6 +20,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47B397_CHIP_H
|
||||
#define SUPERIO_SMSC_LPC47B397_CHIP_H
|
||||
|
||||
struct chip_operations;
|
||||
extern struct chip_operations superio_smsc_lpc47b397_ops;
|
||||
|
||||
@@ -30,3 +33,5 @@ struct superio_smsc_lpc47b397_config {
|
||||
struct uart8250 com1, com2;
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -20,6 +20,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47B397_LPC47B397_H
|
||||
#define SUPERIO_SMSC_LPC47B397_LPC47B397_H
|
||||
|
||||
#define LPC47B397_FDC 0 /* Floppy */
|
||||
#define LPC47B397_PP 3 /* Parallel Port */
|
||||
#define LPC47B397_SP1 4 /* Com1 */
|
||||
@@ -27,3 +30,5 @@
|
||||
#define LPC47B397_KBC 7 /* Keyboard & Mouse */
|
||||
#define LPC47B397_HWM 8 /* HW Monitor */
|
||||
#define LPC47B397_RT 10 /* Runtime reg*/
|
||||
|
||||
#endif
|
||||
|
@@ -22,6 +22,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47M10X_CHIP_H
|
||||
#define SUPERIO_SMSC_LPC47M10X_CHIP_H
|
||||
|
||||
struct chip_operations;
|
||||
extern struct chip_operations superio_smsc_lpc47m10x_ops;
|
||||
|
||||
@@ -32,3 +35,5 @@ struct superio_smsc_lpc47m10x_config {
|
||||
struct uart8250 com1, com2;
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -20,6 +20,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47M10X_LPC47M10X_H
|
||||
#define SUPERIO_SMSC_LPC47M10X_LPC47M10X_H
|
||||
|
||||
#define LPC47M10X2_FDC 0 /* Floppy */
|
||||
#define LPC47M10X2_PP 3 /* Parallel Port */
|
||||
#define LPC47M10X2_SP1 4 /* Com1 */
|
||||
@@ -30,3 +33,5 @@
|
||||
#define LPC47M10X2_MPU 10 /* MPE -- who knows -- reg*/
|
||||
|
||||
#define LPC47M10X2_MAX_CONFIG_REGISTER 0x5F
|
||||
|
||||
#endif
|
||||
|
@@ -17,6 +17,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47M15X_CHIP_H
|
||||
#define SUPERIO_SMSC_LPC47M15X_CHIP_H
|
||||
|
||||
struct chip_operations;
|
||||
extern struct chip_operations superio_smsc_lpc47m15x_ops;
|
||||
|
||||
@@ -27,3 +30,5 @@ struct superio_smsc_lpc47m15x_config {
|
||||
struct uart8250 com1, com2;
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -17,6 +17,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47M15X_LPC47M15X_H
|
||||
#define SUPERIO_SMSC_LPC47M15X_LPC47M15X_H
|
||||
|
||||
#define LPC47M15X_FDC 0 /* Floppy */
|
||||
#define LPC47M15X_PP 3 /* Parallel Port */
|
||||
#define LPC47M15X_SP1 4 /* Com1 */
|
||||
@@ -27,3 +30,5 @@
|
||||
#define LPC47M15X_MPU 11 /* MPE -- who knows -- reg*/
|
||||
|
||||
#define LPC47M15X2_MAX_CONFIG_REGISTER 0x5F
|
||||
|
||||
#endif
|
||||
|
@@ -18,6 +18,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47N217_CHIP_H
|
||||
#define SUPERIO_SMSC_LPC47N217_CHIP_H
|
||||
|
||||
struct chip_operations;
|
||||
extern struct chip_operations superio_smsc_lpc47n217_ops;
|
||||
|
||||
@@ -26,3 +29,5 @@ extern struct chip_operations superio_smsc_lpc47n217_ops;
|
||||
struct superio_smsc_lpc47n217_config {
|
||||
struct uart8250 com1, com2;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -18,12 +18,17 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/* These are arbitrary, but must match declarations in the mainboard config file.
|
||||
* Values chosen to match SMSC 47B37x.
|
||||
*/
|
||||
#ifndef SUPERIO_SMSC_LPC47N217_LPC47N217_H
|
||||
#define SUPERIO_SMSC_LPC47N217_LPC47N217_H
|
||||
|
||||
/*
|
||||
* These are arbitrary, but must match declarations in the mainboard
|
||||
* devicetree.cb file. Values chosen to match SMSC LPC47B37x.
|
||||
*/
|
||||
#define LPC47N217_PP 3 /* Parallel Port */
|
||||
#define LPC47N217_SP1 4 /* Com1 */
|
||||
#define LPC47N217_SP2 5 /* Com2 */
|
||||
|
||||
#define LPC47N217_MAX_CONFIG_REGISTER 0x39
|
||||
|
||||
#endif
|
||||
|
@@ -17,6 +17,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47N227_CHIP_H
|
||||
#define SUPERIO_SMSC_LPC47N227_CHIP_H
|
||||
|
||||
#include <device/device.h>
|
||||
#include <pc80/keyboard.h>
|
||||
#include <uart8250.h>
|
||||
@@ -27,3 +30,5 @@ struct superio_smsc_lpc47n227_config {
|
||||
struct uart8250 com1, com2;
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -17,6 +17,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_LPC47N227_LPC47N227_H
|
||||
#define SUPERIO_SMSC_LPC47N227_LPC47N227_H
|
||||
|
||||
/*
|
||||
* Since the LPC47N227 does not have logical devices but a flat configuration
|
||||
* space, these are arbitrary, but must match declarations in the mainboard
|
||||
@@ -28,3 +31,5 @@
|
||||
#define LPC47N227_KBDC 5 /* Keyboard */
|
||||
|
||||
#define LPC47N227_MAX_CONFIG_REGISTER 0x39
|
||||
|
||||
#endif
|
||||
|
@@ -17,8 +17,8 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _SUPERIO_SMSC_SIO10N268
|
||||
#define _SUPERIO_SMSC_SIO10N268
|
||||
#ifndef SUPERIO_SMSC_SIO10N268_CHIP_H
|
||||
#define SUPERIO_SMSC_SIO10N268_CHIP_H
|
||||
|
||||
#include <device/device.h>
|
||||
#include <pc80/keyboard.h>
|
||||
@@ -31,5 +31,4 @@ struct superio_smsc_sio10n268_config {
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif /* _SUPERIO_SMSC_SIO10N268 */
|
||||
|
||||
#endif
|
||||
|
@@ -17,9 +17,13 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
// XXX the SIO10N268 has no logical devices.
|
||||
#ifndef SUPERIO_SMSC_SIO10N268_SIO10N268_H
|
||||
#define SUPERIO_SMSC_SIO10N268_SIO10N268_H
|
||||
|
||||
/* Note: The SIO10N268 has no logical devices. */
|
||||
|
||||
#define SIO10N268_FDC 0x00 /* Floppy */
|
||||
#define SIO10N268_PP 0x03 /* Parallel port */
|
||||
#define SIO10N268_KBDC 0x05 /* Keyboard */
|
||||
|
||||
#endif
|
||||
|
@@ -18,5 +18,4 @@
|
||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
##
|
||||
|
||||
#config chip.h
|
||||
ramstage-$(CONFIG_SUPERIO_SMSC_SMSCSUPERIO) += superio.c
|
||||
|
@@ -18,6 +18,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_SMSC_SMSCSUPERIO_CHIP_H
|
||||
#define SUPERIO_SMSC_SMSCSUPERIO_CHIP_H
|
||||
|
||||
#include <device/device.h>
|
||||
#include <pc80/keyboard.h>
|
||||
#include <uart8250.h>
|
||||
@@ -28,3 +31,5 @@ struct superio_smsc_smscsuperio_config {
|
||||
struct uart8250 com1, com2;
|
||||
struct pc_keyboard keyboard;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user