/* No error: return = 0 Unable to open: return = -1 Unable to mmap: return = -2  */
static int cfag12864b_init(char *path)
/* No error: return = 0 Unable to open: return = -1 Unable to mmap: return = -2  */
static int cfag12864b_init(char *path)
{
	cfag12864b_fd = open(path, O_RDWR);
	if (cfag12864b_fd == -1)
		return -1;
	cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE,
		MAP_SHARED, cfag12864b_fd, 0);
	if (cfag12864b_mem == MAP_FAILED) {
		close(cfag12864b_fd);
		return -2;
	}
	return 0;
}