K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / lib / firmware / carl9170fw / tools / lib /
server ip : 104.21.89.46

your ip : 172.69.58.80

H O M E


Filename/lib/firmware/carl9170fw/tools/lib/carlfw.h
Size2.15 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified05-Mar-2014 23:45
Last accessed27-Apr-2025 09:50
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
/*
* Copyright 2010-2011 Christian Lamparter <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef __CARLFW_H
#define __CARLFW_H

#include <linux/types.h>
#include "compiler.h"
#include "fwdesc.h"
#include "list.h"

struct carlfw;

void carlfw_release(struct carlfw *fw);
struct carlfw *carlfw_load(const char *basename);
int carlfw_store(struct carlfw *fw);
void *carlfw_find_desc(struct carlfw *fw,
const uint8_t descid[4], const unsigned int len,
const uint8_t compatible_revision);

int carlfw_desc_add_tail(struct carlfw *fw,
const struct carl9170fw_desc_head *desc);

int carlfw_desc_add(struct carlfw *fw,
const struct carl9170fw_desc_head *desc,
struct carl9170fw_desc_head *prev,
struct carl9170fw_desc_head *next);

void *carlfw_desc_mod_len(struct carlfw *fw,
struct carl9170fw_desc_head *desc,
size_t len);

int carlfw_desc_add_before(struct carlfw *fw,
const struct carl9170fw_desc_head *desc,
struct carl9170fw_desc_head *pos);

void carlfw_desc_unlink(struct carlfw *fw,
struct carl9170fw_desc_head *desc);

void carlfw_desc_del(struct carlfw *fw,
struct carl9170fw_desc_head *entry);

void *carlfw_desc_next(struct carlfw *fw,
struct carl9170fw_desc_head *pos);

void *carlfw_mod_tailroom(struct carlfw *fw, ssize_t len);
void *carlfw_mod_headroom(struct carlfw *fw, ssize_t len);

void *carlfw_get_fw(struct carlfw *fw, size_t *len);

unsigned int carlfw_get_descs_num(struct carlfw *fw);
unsigned int carlfw_get_descs_size(struct carlfw *fw);
#endif /* __CARLFW_H */