]> git.baikalelectronics.ru Git - kernel.git/commit
switchtec: Add IOCTLs to the Switchtec driver
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 2 Mar 2017 23:24:34 +0000 (16:24 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Apr 2017 17:23:37 +0000 (12:23 -0500)
commitccf4665a77457146ac169ee6e3422746edf8dcf3
tree959b69df05f188f33ae2d7e5ba53158fd50f2f83
parent32624fa111bcf8219c6684545b2e942c9b69e70a
switchtec: Add IOCTLs to the Switchtec driver

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 <dan.carpenter@oracle.com>: fix off-by-one in
ioctl_event_ctl()]
Tested-by: Krishna Dhulipala <krishnad@fb.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Stephen Bates <stephen.bates@microsemi.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Wei Zhang <wzhang@fb.com>
Reviewed-by: Jens Axboe <axboe@fb.com>
Documentation/ioctl/ioctl-number.txt
Documentation/switchtec.txt
MAINTAINERS
drivers/pci/switch/switchtec.c
include/uapi/linux/switchtec_ioctl.h [new file with mode: 0644]