1 extern struct device device_list[]; 2 extern struct device device_list_end[]; 3 4 static int device_probe(struct device * dev)5device_probe(struct device *dev) 6 { 7 int err; 8 } 9 10 /* ===================== */ 11 struct scpi_mem { 12 struct scpi_msg tx_msg; /**< The reply to be sent to a client. */ 13 struct scpi_msg rx_msg; /**< The request received from a client. */ 14 }; 15 16 struct scpi_buffer { 17 struct scpi_mem mem; /**< Memory for the request/reply messages. */ 18 uint8_t client; /**< Client that should receive the reply. */ 19 bool busy; /**< Flag telling if this buffer is in use. */ 20 }; 21 22 static void scpi_receive_message(struct device * dev __unused,uint8_t client,uint32_t msg)23scpi_receive_message(struct device *dev __unused, uint8_t client, uint32_t msg) 24 { 25 struct scpi_buffer *buffer; 26 struct scpi_msg *rx_msg = &SCPI_MEM_AREA(client).rx_msg; 27 28 assert(dev == scpi_msgbox); 29 } 30