bus_if.m (6f3544cd7084abbadd83637993a4f41fd30e6ccd) | bus_if.m (85ee63c9238483c787a12547328a6b1c196264db) |
---|---|
1#- 2# Copyright (c) 1998-2004 Doug Rabson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 283 unchanged lines hidden (view full) --- 292 device_t _dev; 293 device_t _child; 294 int _type; 295 int _rid; 296 struct resource *_r; 297}; 298 299/** | 1#- 2# Copyright (c) 1998-2004 Doug Rabson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 283 unchanged lines hidden (view full) --- 292 device_t _dev; 293 device_t _child; 294 int _type; 295 int _rid; 296 struct resource *_r; 297}; 298 299/** |
300 * @brief Adjust a resource 301 * 302 * Adjust the start and/or end of a resource allocated by 303 * BUS_ALLOC_RESOURCE. At least part of the new address range must overlap 304 * with the existing address range. If the successful, the resource's range 305 * will be adjusted to [start, end] on return. 306 * 307 * @param _dev the parent device of @p _child 308 * @param _child the device which allocated the resource 309 * @param _type the type of resource 310 * @param _res the resource to adjust 311 * @param _start the new starting address of the resource range 312 * @param _end the new ending address of the resource range 313 */ 314METHOD int adjust_resource { 315 device_t _dev; 316 device_t _child; 317 int _type; 318 struct resource *_res; 319 u_long _start; 320 u_long _end; 321}; 322 323/** |
|
300 * @brief Release a resource 301 * 302 * Free a resource allocated by the BUS_ALLOC_RESOURCE. The @p _rid 303 * value must be the same as the one returned by BUS_ALLOC_RESOURCE() 304 * (which is not necessarily the same as the one the client passed). 305 * 306 * @param _dev the parent device of @p _child 307 * @param _child the device which allocated the resource --- 327 unchanged lines hidden --- | 324 * @brief Release a resource 325 * 326 * Free a resource allocated by the BUS_ALLOC_RESOURCE. The @p _rid 327 * value must be the same as the one returned by BUS_ALLOC_RESOURCE() 328 * (which is not necessarily the same as the one the client passed). 329 * 330 * @param _dev the parent device of @p _child 331 * @param _child the device which allocated the resource --- 327 unchanged lines hidden --- |