Lines Matching +full:class +full:- +full:d
1 /* SPDX-License-Identifier: GPL-2.0-only */
29 * Bits 15:12 of the CID are the device class.
31 * Class 0xF remains for PrimeCell and legacy components. (AMBA_CID above)
32 * Class 0x9 defines the component as CoreSight (CORESIGHT_CID above)
33 * Class 0x0, 0x1, 0xB, 0xE define components that do not have driver support
35 * Class 0x2-0x8,0xA and 0xD-0xD are presently reserved.
37 * Remaining CID bits stay as 0xb105-00d
41 * Class 0x9 components use additional values to form a Unique Component
44 * the amba_id->data pointer.
96 /* This is used to generate pseudo-ID for AMBA device */
103 #define to_amba_device(d) container_of(d, struct amba_device, dev) argument
105 #define amba_get_drvdata(d) dev_get_drvdata(&d->dev) argument
106 #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) argument
139 return clk_enable(dev->pclk); in amba_pclk_enable()
144 clk_disable(dev->pclk); in amba_pclk_disable()
149 return clk_prepare(dev->pclk); in amba_pclk_prepare()
154 clk_unprepare(dev->pclk); in amba_pclk_unprepare()
163 #define amba_config(d) AMBA_CONFIG_BITS((d)->periphid) argument
164 #define amba_rev(d) AMBA_REV_BITS((d)->periphid) argument
165 #define amba_manf(d) AMBA_MANF_BITS((d)->periphid) argument
166 #define amba_part(d) AMBA_PART_BITS((d)->periphid) argument
201 * module_amba_driver() - Helper macro for drivers that don't do anything
210 * builtin_amba_driver() - Helper macro for drivers that don't do anything