Debian Codegraph @

src/superio/nuvoton/nct6687d/nct6687d_ec.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #ifndef SUPERIO_NUVOTON_NCT6687D_EC_H
4 #define SUPERIO_NUVOTON_NCT6687D_EC_H
5
6 #include <types.h>
7
8 /* Offsets in the EC IO base. Port0 for firmware use, Port1 for software use */
9 #define EC_PORT0_PAGE 0
10 #define EC_PORT0_INDEX 1
11 #define EC_PORT0_DATA 2
12 #define EC_PORT0_HOST_IF_EVENT 3
13
14 #define EC_PORT1_PAGE 4
15 #define EC_PORT1_INDEX 5
16 #define EC_PORT1_DATA 6
17 #define EC_PORT1_HOST_IF_EVENT 7
18
19 void nct6687d_ec_write_page(uint16_t iobase, uint8_t page, uint8_t index, uint8_t value);
20 void nct6687d_ec_write_page_ff(uint16_t iobase, uint8_t page, uint8_t index, uint8_t value);
21 void nct6687d_ec_and_or_page(uint16_t iobase, uint8_t page, uint8_t index,
22 uint8_t and_mask, uint8_t or_mask);
23 void nct6687d_ec_and_or_page_ff(uint16_t iobase, uint8_t page, uint8_t index,
24 uint8_t and_mask, uint8_t or_mask);
25 uint8_t nct6687d_ec_read_page(uint16_t iobase, uint8_t page, uint8_t index);
26
27 #endif /* SUPERIO_NUVOTON_NCT6687D_EC_H */