Server IP : 172.67.216.182 / Your IP : 162.158.170.231 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-142/include/linux/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-only */ /* FSI device & driver interfaces * * Copyright (C) IBM Corporation 2016 */ #ifndef LINUX_FSI_H #define LINUX_FSI_H #include <linux/device.h> struct fsi_device { struct device dev; u8 engine_type; u8 version; u8 unit; struct fsi_slave *slave; uint32_t addr; uint32_t size; }; extern int fsi_device_read(struct fsi_device *dev, uint32_t addr, void *val, size_t size); extern int fsi_device_write(struct fsi_device *dev, uint32_t addr, const void *val, size_t size); extern int fsi_device_peek(struct fsi_device *dev, void *val); struct fsi_device_id { u8 engine_type; u8 version; }; #define FSI_VERSION_ANY 0 #define FSI_DEVICE(t) \ .engine_type = (t), .version = FSI_VERSION_ANY, #define FSI_DEVICE_VERSIONED(t, v) \ .engine_type = (t), .version = (v), struct fsi_driver { struct device_driver drv; const struct fsi_device_id *id_table; }; #define to_fsi_dev(devp) container_of(devp, struct fsi_device, dev) #define to_fsi_drv(drvp) container_of(drvp, struct fsi_driver, drv) extern int fsi_driver_register(struct fsi_driver *fsi_drv); extern void fsi_driver_unregister(struct fsi_driver *fsi_drv); /* module_fsi_driver() - Helper macro for drivers that don't do * anything special in module init/exit. This eliminates a lot of * boilerplate. Each module may only use this macro once, and * calling it replaces module_init() and module_exit() */ #define module_fsi_driver(__fsi_driver) \ 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; extern const struct device_type fsi_cdev_type; enum fsi_dev_type { fsi_dev_cfam, fsi_dev_sbefifo, fsi_dev_scom, fsi_dev_occ }; extern int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, dev_t *out_dev, int *out_index); extern void fsi_free_minor(dev_t dev); #endif /* LINUX_FSI_H */