summaryrefslogtreecommitdiff
path: root/include/linux/device-id/amba.h
blob: 114d66a784acb80508a3aa18180571132ed90146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_DEVICE_ID_AMBA_H
#define LINUX_DEVICE_ID_AMBA_H

/**
 * struct amba_id - identifies a device on an AMBA bus
 * @id: The significant bits if the hardware device ID
 * @mask: Bitmask specifying which bits of the id field are significant when
 *	matching.  A driver binds to a device when ((hardware device ID) & mask)
 *	== id.
 * @data: Private data used by the driver.
 */
struct amba_id {
	unsigned int		id;
	unsigned int		mask;
	void			*data;
};

#endif /* ifndef LINUX_DEVICE_ID_AMBA_H */