/* This only works on machines with the VIA-based PRAM/RTC, which is basically any machine with Mac II-style ADB.  */
static void via_write_time(long time)
/* This only works on machines with the VIA-based PRAM/RTC, which is basically any machine with Mac II-style ADB.  */
static void via_write_time(long time)
{
	union {
		__u8  cdata[4];
		long  idata;
	} data;
	__u8	temp;
	temp = 0x55;
	via_pram_command(0x35, &temp);
	data.idata = time + RTC_OFFSET;
	via_pram_command(0x01, &data.cdata[3]);
	via_pram_command(0x05, &data.cdata[2]);
	via_pram_command(0x09, &data.cdata[1]);
	via_pram_command(0x0D, &data.cdata[0]);
	temp = 0xD5;
	via_pram_command(0x35, &temp);
}