Lines Matching +full:write +full:- +full:protect
1 /* SPDX-License-Identifier: GPL-2.0+ */
16 /* Returns HDA config info if Azalia V1CTL enabled, -ENOENT if not */
27 * struct pch_ops - Operations for the Platform Controller Hub
29 * Consider using ioctl() to add rarely used or driver-specific operations.
33 * get_spi_base() - get the address of SPI base
37 * @return 0 if OK, -ve on error (e.g. there is no SPI base)
42 * set_spi_protect() - set whether SPI flash is protected or not
45 * @protect: true to protect, false to unprotect
47 * @return 0 on success, -ENOSYS if not implemented
49 int (*set_spi_protect)(struct udevice *dev, bool protect);
52 * get_gpio_base() - get the address of GPIO base
56 * @return 0 if OK, -ve on error (e.g. there is no GPIO base)
61 * get_io_base() - get the address of IO base
65 * @return 0 if OK, -ve on error (e.g. there is no IO base)
70 * ioctl() - perform misc read/write operations
72 * This is a catch-all operation intended to avoid adding lots of
81 * @return size of output data on sucesss, -ve on error
87 #define pch_get_ops(dev) ((struct pch_ops *)(dev)->driver->ops)
90 * pch_get_spi_base() - get the address of SPI base
94 * @return 0 if OK, -ve on error (e.g. there is no SPI base)
99 * set_spi_protect() - set whether SPI flash is protected or not
102 * @protect: true to protect, false to unprotect
104 * @return 0 on success, -ENOSYS if not implemented
106 int pch_set_spi_protect(struct udevice *dev, bool protect);
109 * pch_get_gpio_base() - get the address of GPIO base
113 * @return 0 if OK, -ve on error (e.g. there is no GPIO base)
118 * pch_get_io_base() - get the address of IO base
122 * @return 0 if OK, -ve on error (e.g. there is no IO base)
127 * pch_ioctl() - perform misc read/write operations
129 * This is a catch-all operation intended to avoid adding lots of
138 * @return size of output data on sucesss, -ve on error