spi.h (d67fe28ba6a9e8c2cde4e2fc0ce6e67f601429aa) spi.h (64b507e5fe1d27bdbad831ba9249e68fdffc759a)
1/*-
2 * Copyright (c) 2006 M. Warner Losh
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 26 unchanged lines hidden (view full) ---

35 uint32_t tx_data_sz;
36 void *rx_data;
37 uint32_t rx_data_sz;
38};
39
40#define SPI_COMMAND_INITIALIZER { 0 }
41
42#define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */
1/*-
2 * Copyright (c) 2006 M. Warner Losh
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 26 unchanged lines hidden (view full) ---

35 uint32_t tx_data_sz;
36 void *rx_data;
37 uint32_t rx_data_sz;
38};
39
40#define SPI_COMMAND_INITIALIZER { 0 }
41
42#define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */
43
44#define SPIBUS_PNP_DESCR "Z:compat;P:#;"
45#define SPIBUS_PNP_INFO(t) \
46 MODULE_PNP_INFO(SPIBUS_PNP_DESCR, spibus, t, t, sizeof(t[0]), sizeof(t) / sizeof(t[0]));