62 lines
1.4 KiB
C
62 lines
1.4 KiB
C
/*
|
|
* Disclaimer (blabla)
|
|
*
|
|
* Author: Manoël Trapier <manoelt@bookeen.com>
|
|
* Copyright (c) 2009-2010 Bookeen
|
|
*
|
|
*/
|
|
#ifndef CYBOOK_H
|
|
#define CYBOOK_H
|
|
|
|
enum {
|
|
CYBOOK_GEN3 = 0,
|
|
CYBOOK_OPUS,
|
|
CYBOOK_GEN3GOLD,
|
|
CYBOOK_OPUS2,
|
|
CYBOOK_GEN4,
|
|
};
|
|
|
|
extern unsigned int platform_type;
|
|
/* 3322 2222 2222 1111 1111 1100 0000 0000
|
|
* 1098 7654 3210 9876 5432 1098 7654 3210
|
|
* ---------------------------------------
|
|
* D FFFG GGVV VSSS
|
|
*
|
|
* D = Dev Mode
|
|
*
|
|
* FFF = Form Factor
|
|
* GGG = GSensor mode
|
|
* VVV = Video Driver
|
|
* SSS = Sound Driver
|
|
*/
|
|
extern unsigned long platform_capability;
|
|
|
|
#define PLAT_CAP_GSENSOR (7 << 6)
|
|
#define PLAT_CAP_GNONE (0 << 6)
|
|
#define PLAT_CAP_GMMA7455 (1 << 6)
|
|
#define PLAT_CAP_GMMA7660 (2 << 6)
|
|
#define PLAT_CAP_GTILT (3 << 6)
|
|
|
|
#define PLAT_CAP_SOUND (7 << 0)
|
|
#define PLAT_CAP_SOUNDNO (0 << 0)
|
|
#define PLAT_CAP_SOUNDL3 (1 << 0)
|
|
|
|
#define PLAT_CAP_VIDEO (7 << 3)
|
|
#define PLAT_CAP_VAPOLLO (0 << 3)
|
|
#define PLAT_CAP_VEPSON (1 << 3)
|
|
#define PLAT_CAP_VTCON (2 << 3)
|
|
|
|
#define PLAT_CAP_FORMFACTOR (7 << 9)
|
|
#define PLAT_CAP_GEN3FORM (0 << 9)
|
|
#define PLAT_CAP_OPUSFORM (1 << 9)
|
|
#define PLAT_CAP_ORIZONFORM (2 << 9)
|
|
|
|
#define PLAT_CAP_DEVMODE (1 << 31)
|
|
#define PLAT_CAP_UNRESTRICT (1 << 30)
|
|
|
|
//#define PLAT_CAP_
|
|
|
|
#define GET_CAPABILITY(CAPAB) (platform_capability & (CAPAB))
|
|
|
|
#endif /* CYBOOK_H */
|