• Home
  • Raw
  • Download

Lines Matching +full:platform +full:- +full:data

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * platform_device.h - generic, centralized driver model
5 * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org>
7 * See Documentation/driver-api/driver-model/ for more information.
15 #define PLATFORM_DEVID_NONE (-1)
16 #define PLATFORM_DEVID_AUTO (-2)
42 #define platform_get_device_id(pdev) ((pdev)->id_entry)
44 #define dev_is_platform(dev) ((dev)->bus == &platform_bus_type)
92 const void *data; member
102 * platform_device_register_resndata - add a platform-level device with
103 * resources and platform-specific data
110 * @data: platform specific data for this platform device
111 * @size: size of platform specific data
118 const void *data, size_t size) { in platform_device_register_resndata() argument
126 .data = data, in platform_device_register_resndata()
135 * platform_device_register_simple - add a platform-level device and its resources
141 * This function creates a simple platform device that requires minimal
165 * platform_device_register_data - add a platform-level device with platform-specific data
169 * @data: platform specific data for this platform device
170 * @size: size of platform specific data
172 * This function creates a simple platform device that requires minimal
182 const void *data, size_t size) in platform_device_register_data() argument
185 NULL, 0, data, size); in platform_device_register_data()
193 const void *data, size_t size);
223 /* non-hotpluggable platform devices may use this so that probe() and
233 return dev_get_drvdata(&pdev->dev); in platform_get_drvdata()
237 void *data) in platform_set_drvdata() argument
239 dev_set_drvdata(&pdev->dev, data); in platform_set_drvdata()
242 /* module_platform_driver() - Helper macro for drivers that don't do
251 /* builtin_platform_driver() - Helper macro for builtin drivers that
260 /* module_platform_driver_probe() - Helper macro for drivers that don't do
278 /* builtin_platform_driver_probe() - Helper macro for drivers that don't do
292 #define platform_create_bundle(driver, probe, res, n_res, data, size) \ argument
293 __platform_create_bundle(driver, probe, res, n_res, data, size, THIS_MODULE)
297 const void *data, size_t size, struct module *module);
343 * REVISIT: This stub is needed for all non-SuperH users of early platform
344 * drivers. It should go away once we introduce the new platform_device-based