spi: add ioctl and spi constants/helpers