Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a95557d5
Commit
a95557d5
authored
Jun 18, 2003
by
Manuel Estrada Sainz
Committed by
Greg Kroah-Hartman
Jun 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] DRIVER: request_firmware() hotplug interface
parent
77518190
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
537 additions
and
0 deletions
+537
-0
drivers/base/Kconfig.lib
drivers/base/Kconfig.lib
+11
-0
drivers/base/Makefile
drivers/base/Makefile
+1
-0
drivers/base/firmware_class.c
drivers/base/firmware_class.c
+503
-0
include/linux/firmware.h
include/linux/firmware.h
+20
-0
lib/Kconfig
lib/Kconfig
+2
-0
No files found.
drivers/base/Kconfig.lib
0 → 100644
View file @
a95557d5
#
# To be sourced from lib/Kconfig
#
config FW_LOADER
tristate "Hotplug firmware loading support"
---help---
This option is provided for the case where no in-kernel-tree modules
require hotplug firmware loading support, but a module built outside
the kernel tree does.
drivers/base/Makefile
View file @
a95557d5
...
@@ -3,4 +3,5 @@
...
@@ -3,4 +3,5 @@
obj-y
:=
core.o sys.o interface.o power.o bus.o
\
obj-y
:=
core.o sys.o interface.o power.o bus.o
\
driver.o class.o platform.o
\
driver.o class.o platform.o
\
cpu.o firmware.o init.o map.o
cpu.o firmware.o init.o map.o
obj-$(CONFIG_FW_LOADER)
+=
firmware_class.o
obj-$(CONFIG_NUMA)
+=
node.o memblk.o
obj-$(CONFIG_NUMA)
+=
node.o memblk.o
drivers/base/firmware_class.c
0 → 100644
View file @
a95557d5
This diff is collapsed.
Click to expand it.
include/linux/firmware.h
0 → 100644
View file @
a95557d5
#ifndef _LINUX_FIRMWARE_H
#define _LINUX_FIRMWARE_H
#include <linux/module.h>
#include <linux/types.h>
#define FIRMWARE_NAME_MAX 30
struct
firmware
{
size_t
size
;
u8
*
data
;
};
int
request_firmware
(
const
struct
firmware
**
fw
,
const
char
*
name
,
struct
device
*
device
);
int
request_firmware_nowait
(
struct
module
*
module
,
const
char
*
name
,
struct
device
*
device
,
void
*
context
,
void
(
*
cont
)(
const
struct
firmware
*
fw
,
void
*
context
));
/* Maybe 'device' should be 'struct device *' */
void
release_firmware
(
const
struct
firmware
*
fw
);
void
register_firmware
(
const
char
*
name
,
const
u8
*
data
,
size_t
size
);
#endif
lib/Kconfig
View file @
a95557d5
...
@@ -26,5 +26,7 @@ config ZLIB_DEFLATE
...
@@ -26,5 +26,7 @@ config ZLIB_DEFLATE
(PPP_DEFLATE=m || JFFS2_FS=m || CRYPTO_DEFLATE=m)
(PPP_DEFLATE=m || JFFS2_FS=m || CRYPTO_DEFLATE=m)
default y if PPP_DEFLATE=y || JFFS2_FS=y || CRYPTO_DEFLATE=y
default y if PPP_DEFLATE=y || JFFS2_FS=y || CRYPTO_DEFLATE=y
source "drivers/base/Kconfig.lib"
endmenu
endmenu
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment