Fix rtc_write_reg().
This commit is contained in:
parent
3cbffc40e1
commit
408b9fac30
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: clock.c,v 1.42 2001/09/26 20:53:12 eeh Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.43 2001/10/02 04:06:26 eeh Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -451,9 +451,10 @@ rtc_read_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg)
|
||||
return (bus_space_read_1(bt, bh, RTC_DATA));
|
||||
}
|
||||
void
|
||||
rtc_write_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg, u_int8_t val) {
|
||||
rtc_write_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg, u_int8_t val)
|
||||
{
|
||||
bus_space_write_1(bt, bh, RTC_ADDR, reg);
|
||||
bus_space_write_1(bt, bh, RTC_DATA, reg);
|
||||
bus_space_write_1(bt, bh, RTC_DATA, val);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
|
Loading…
Reference in New Issue
Block a user