aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux/switchtec_ioctl.h
AgeCommit message (Collapse)AuthorFilesLines
2017-06-27switchtec: Add "running" status flag to fw partition info ioctlLogan Gunthorpe1-0/+3
This flag lets userspace know which firmware partitions are currently in use as opposed to just active. "Active" means they will be in use for the next reboot, whereas "running" means they are currently in use. If an old kernel is in use, or the firmware doesn't support these fields, the new flag will not be set in the output. Signed-off-by: Logan Gunthorpe <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Kurt Schwemmer <[email protected]>
2017-04-12switchtec: Add IOCTLs to the Switchtec driverLogan Gunthorpe1-0/+132
Add a couple of special IOCTLs to: * Inform userspace of firmware partition locations * Pass event counts and allow userspace to wait on events * Translate PFF numbers used by the switch to port numbers [Dan Carpenter <[email protected]>: fix off-by-one in ioctl_event_ctl()] Tested-by: Krishna Dhulipala <[email protected]> Signed-off-by: Logan Gunthorpe <[email protected]> Signed-off-by: Stephen Bates <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Wei Zhang <[email protected]> Reviewed-by: Jens Axboe <[email protected]>