mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
rapidio: add udev notification
Add RapidIO-specific modalias generation to enable udev notifications about RapidIO-specific events. The RapidIO modalias string format is shown below: "rapidio:vNNNNdNNNNavNNNNadNNNN" Where: v - Device Vendor ID (16 bit), d - Device ID (16 bit), av - Assembly Vendor ID (16 bit), ad - Assembly ID (16 bit), as they are reported in corresponding Capability Registers (CARs) of each RapidIO device. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Li Yang <leoli@freescale.com> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Andre van Herk <andre.van.herk@Prodrive.nl> Cc: Micha Nelissen <micha.nelissen@Prodrive.nl> Cc: Stef van Os <stef.van.os@Prodrive.nl> Cc: Jean Delvare <jdelvare@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
fdf90abc00
commit
3bdbb62fe9
7 changed files with 74 additions and 17 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <linux/errno.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/rio_regs.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
#ifdef CONFIG_RAPIDIO_DMA_ENGINE
|
||||
#include <linux/dmaengine.h>
|
||||
#endif
|
||||
|
@ -396,21 +397,6 @@ struct rio_driver {
|
|||
|
||||
#define to_rio_driver(drv) container_of(drv,struct rio_driver, driver)
|
||||
|
||||
/**
|
||||
* struct rio_device_id - RIO device identifier
|
||||
* @did: RIO device ID
|
||||
* @vid: RIO vendor ID
|
||||
* @asm_did: RIO assembly device ID
|
||||
* @asm_vid: RIO assembly vendor ID
|
||||
*
|
||||
* Identifies a RIO device based on both the device/vendor IDs and
|
||||
* the assembly device/vendor IDs.
|
||||
*/
|
||||
struct rio_device_id {
|
||||
u16 did, vid;
|
||||
u16 asm_did, asm_vid;
|
||||
};
|
||||
|
||||
union rio_pw_msg {
|
||||
struct {
|
||||
u32 comptag; /* Component Tag CSR */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue