Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mc146818.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_MC146818_H_
8#define ZEPHYR_INCLUDE_DRIVERS_MFD_MC146818_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include <zephyr/device.h>
15
23uint8_t mfd_mc146818_std_read(const struct device *dev, uint8_t offset);
24
32void mfd_mc146818_std_write(const struct device *dev, uint8_t offset, uint8_t value);
33
41uint8_t mfd_mc146818_ext_read(const struct device *dev, uint8_t offset);
42
50void mfd_mc146818_ext_write(const struct device *dev, uint8_t offset, uint8_t value);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* ZEPHYR_INCLUDE_DRIVERS_MFD_MC146818_H_ */
uint8_t mfd_mc146818_ext_read(const struct device *dev, uint8_t offset)
Read the value at the given offset in extended memory bank.
uint8_t mfd_mc146818_std_read(const struct device *dev, uint8_t offset)
Read the value at the given offset in standard memory bank.
void mfd_mc146818_std_write(const struct device *dev, uint8_t offset, uint8_t value)
Write the value at the given offset in standard memory bank.
void mfd_mc146818_ext_write(const struct device *dev, uint8_t offset, uint8_t value)
Write the value at the given offset in extended memory bank.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:510