cyb4_linux/include/cybook.h

57 lines
1.3 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
* ---------------------------------------
* FFGG VVSS
*
* FF = Form Factor
* GG = GSensor mode
* VV = Video Driver
* SS = Sound Driver
*/
extern unsigned long platform_capability;
#define PLAT_CAP_GSENSOR (3 << 4)
#define PLAT_CAP_GNONE (0 << 4)
#define PLAT_CAP_GMMA7455 (1 << 4)
#define PLAT_CAP_GMMA7660 (2 << 4)
#define PLAT_CAP_GTILT (3 << 4)
#define PLAT_CAP_SOUND (3 << 0)
#define PLAT_CAP_SOUNDNO (0 << 0)
#define PLAT_CAP_SOUNDL3 (1 << 0)
#define PLAT_CAP_VIDEO (3 << 2)
#define PLAT_CAP_VAPOLLO (0 << 2)
#define PLAT_CAP_VEPSON (1 << 2)
#define PLAT_CAP_VTCON (2 << 2)
#define PLAT_CAP_FORMFACTOR (3 << 6)
#define PLAT_CAP_GEN3FORM (0 << 6)
#define PLAT_CAP_OPUSFORM (1 << 6)
#define PLAT_CAP_ORIZONFORM (2 << 6)
#define GET_CAPABILITY(CAPAB) (platform_capability & (CAPAB))
//#define PLAT_CAP_
#endif /* CYBOOK_H */