mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
drivers/fsi: expose direct-access slave API
Allow drivers to access the slave address ranges. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
125739cbc1
commit
da36cadf89
2 changed files with 36 additions and 6 deletions
|
@ -66,6 +66,18 @@ extern void fsi_driver_unregister(struct fsi_driver *fsi_drv);
|
|||
module_driver(__fsi_driver, fsi_driver_register, \
|
||||
fsi_driver_unregister)
|
||||
|
||||
/* direct slave API */
|
||||
extern int fsi_slave_claim_range(struct fsi_slave *slave,
|
||||
uint32_t addr, uint32_t size);
|
||||
extern void fsi_slave_release_range(struct fsi_slave *slave,
|
||||
uint32_t addr, uint32_t size);
|
||||
extern int fsi_slave_read(struct fsi_slave *slave, uint32_t addr,
|
||||
void *val, size_t size);
|
||||
extern int fsi_slave_write(struct fsi_slave *slave, uint32_t addr,
|
||||
const void *val, size_t size);
|
||||
|
||||
|
||||
|
||||
extern struct bus_type fsi_bus_type;
|
||||
|
||||
#endif /* LINUX_FSI_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue