Exemplo n.º 1
0
void pagemap_init(void)
{
	int i;

	/* RC2014 512/512K has RAM in the top 512 KiB of physical memory
	 * corresponding pages are 32-63 (page size is 16 KiB)
	 * Pages 32-34 are used by the kernel
	 * Page 35 is the common area for init
	 * Page 36 is the disk cache
	 * Pages 37 amd 38 are the second kernel bank
	 */
	for (i = 32 + 7; i < 64; i++)
		pagemap_add(i);

	/* finally add the common area */
	pagemap_add(32 + 3);

	ds1302_init();

	if (acia_present)
		kputs("6850 ACIA detected at 0x80.\n");
	if (sio_present)
		kputs("Z80 SIO detected at 0x80.\n");
	if (sio1_present)
		kputs("Z80 SIO detected at 0x84.\n");
	if (ctc_present)
		kputs("Z80 CTC detected at 0x88.\n");
	if (ds1302_present)
		kputs("DS1302 detected at 0xC0.\n");
}
Exemplo n.º 2
0
static int8 ds18b20_open(uint8 id)
{
	UNUSED(id);
	ds1302_init();
	
	return 0;
}
Exemplo n.º 3
0
void device_init(void)
{
	uart_ier = 0x0D;	/* This may be our timer so do it first */
	devide_init();
	prop_sd_probe();
	ds1302_init();
	sock_init();
}
Exemplo n.º 4
0
Arquivo: discard.c Projeto: 8l/FUZIX
void device_init(void)
{
	ds1302_init();
	uart0_init();
#ifdef CONFIG_PPIDE
	ppide_init();
	devide_init();
#endif
}
Exemplo n.º 5
0
static int __init ds1302_register(void)
{
	ds1302_init();
	if (register_chrdev(RTC_MAJOR_NR, ds1302_name, &rtc_fops)) {
		printk(KERN_INFO "%s: unable to get major %d for rtc\n",
		       ds1302_name, RTC_MAJOR_NR);
		return -1;
	}
	return 0;
}
Exemplo n.º 6
0
void map_init(void)
{
	if (acia_present)
		kputs("6850 ACIA detected at 0x80.\n");
	if (sio_present)
		kputs("Z80 SIO detected at 0x80.\n");
	if (sio1_present)
		kputs("Z80 SIO detected at 0x84.\n");
	if (ctc_present)
		kputs("Z80 CTC detected at 0x88.\n");
	ds1302_init();
	if (ds1302_present)
		kputs("DS1302 detected at 0xC0.\n");
}
Exemplo n.º 7
0
static int __init ds1302_register(void)
{
	ds1302_init();
	if (register_chrdev(RTC_MAJOR_NR, ds1302_name, &rtc_fops)) {
#ifdef CONFIG_DEBUG_PRINTK
		printk(KERN_INFO "%s: unable to get major %d for rtc\n",
		       ds1302_name, RTC_MAJOR_NR);
#else
		;
#endif
		return -1;
	}
	return 0;
}
Exemplo n.º 8
0
void pagemap_init(void)
{
  /* The high bits do nothing but it's a cheap way to avoid 0x00 */
  pagemap_add(0x12);
  pagemap_add(0x10);

  ds1302_init();

  if (sio_present)
    kputs("Z80 SIO detected at 0x80.\n");
  if (sio1_present)
    kputs("Z80 SIO detected at 0x84.\n");
  if (ctc_present)
    kputs("Z80 CTC detected at 0x88.\n");
  if (ds1302_present)
    kputs("DS1302 detected at 0xC0.\n");
}