1/* 2 * Copyright 2009 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _FBSD_COMPAT_SYS_FIRMWARE_H_ 6#define _FBSD_COMPAT_SYS_FIRMWARE_H_ 7 8 9#define FIRMWARE_UNLOAD 0x0001 10 11 12struct firmware { 13 const char* name; // system-wide name 14 const void* data; // location of image 15 size_t datasize; // size of image in bytes 16 unsigned int version; // version of the image 17}; 18 19 20const struct firmware* firmware_get(const char*); 21void firmware_put(const struct firmware*, int); 22 23#endif /* _FBSD_COMPAT_SYS_FIRMWARE_H_ */ 24