spi.h (01d4e2149e5566e5d9394913dc9fb032da259e0b) | spi.h (db63d251601e4e5f3468c6b7bce18a0ae346374e) |
---|---|
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 --- 27 unchanged lines hidden (view full) --- 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 | 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 --- 27 unchanged lines hidden (view full) --- 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) / sizeof(t[0])); | 44#ifdef FDT 45#define SPIBUS_FDT_PNP_INFO(t) FDTCOMPAT_PNP_INFO(t, spibus) 46#else 47#define SPIBUS_FDT_PNP_INFO(t) 48#endif |