2008-08-21 18:27:51 -04:00
|
|
|
/*
|
|
|
|
* Hermes download helper driver.
|
|
|
|
*
|
|
|
|
* This could be entirely merged into hermes.c.
|
|
|
|
*
|
|
|
|
* I'm keeping it separate to minimise the amount of merging between
|
|
|
|
* kernel upgrades. It also means the memory overhead for drivers that
|
|
|
|
* don't need firmware download low.
|
|
|
|
*
|
|
|
|
* This driver:
|
|
|
|
* - is capable of writing to the volatile area of the hermes device
|
|
|
|
* - is currently not capable of writing to non-volatile areas
|
|
|
|
* - provide helpers to identify and update plugin data
|
|
|
|
* - is not capable of interpreting a fw image directly. That is up to
|
|
|
|
* the main card driver.
|
|
|
|
* - deals with Hermes I devices. It can probably be modified to deal
|
|
|
|
* with Hermes II devices
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007, David Kilroy
|
|
|
|
*
|
|
|
|
* Plug data code slightly modified from spectrum_cs driver
|
|
|
|
* Copyright (C) 2002-2005 Pavel Roskin <proski@gnu.org>
|
|
|
|
* Portions based on information in wl_lkm_718 Agere driver
|
|
|
|
* COPYRIGHT (C) 2001-2004 by Agere Systems Inc. All Rights Reserved
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License
|
|
|
|
* Version 1.1 (the "License"); you may not use this file except in
|
|
|
|
* compliance with the License. You may obtain a copy of the License
|
|
|
|
* at http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS"
|
|
|
|
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
|
|
|
* the License for the specific language governing rights and
|
|
|
|
* limitations under the License.
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the
|
|
|
|
* terms of the GNU General Public License version 2 (the "GPL"), in
|
|
|
|
* which case the provisions of the GPL are applicable instead of the
|
|
|
|
* above. If you wish to allow the use of your version of this file
|
|
|
|
* only under the terms of the GPL and not to allow others to use your
|
|
|
|
* version of this file under the MPL, indicate your decision by
|
|
|
|
* deleting the provisions above and replace them with the notice and
|
|
|
|
* other provisions required by the GPL. If you do not delete the
|
|
|
|
* provisions above, a recipient may use your version of this file
|
|
|
|
* under either the MPL or the GPL.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include "hermes.h"
|
|
|
|
#include "hermes_dld.h"
|
|
|
|
|
|
|
|
MODULE_DESCRIPTION("Download helper for Lucent Hermes chipset");
|
|
|
|
MODULE_AUTHOR("David Kilroy <kilroyd@gmail.com>");
|
|
|
|
MODULE_LICENSE("Dual MPL/GPL");
|
|
|
|
|
|
|
|
#define PFX "hermes_dld: "
|
|
|
|
|
|
|
|
/*
|
|
|
|
* AUX port access. To unlock the AUX port write the access keys to the
|
|
|
|
* PARAM0-2 registers, then write HERMES_AUX_ENABLE to the HERMES_CONTROL
|
|
|
|
* register. Then read it and make sure it's HERMES_AUX_ENABLED.
|
|
|
|
*/
|
|
|
|
#define HERMES_AUX_ENABLE 0x8000 /* Enable auxiliary port access */
|
|
|
|
#define HERMES_AUX_DISABLE 0x4000 /* Disable to auxiliary port access */
|
|
|
|
#define HERMES_AUX_ENABLED 0xC000 /* Auxiliary port is open */
|
2008-08-21 18:27:52 -04:00
|
|
|
#define HERMES_AUX_DISABLED 0x0000 /* Auxiliary port is closed */
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
#define HERMES_AUX_PW0 0xFE01
|
|
|
|
#define HERMES_AUX_PW1 0xDC23
|
|
|
|
#define HERMES_AUX_PW2 0xBA45
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/* End markers used in dblocks */
|
2008-08-21 18:27:51 -04:00
|
|
|
#define PDI_END 0x00000000 /* End of PDA */
|
|
|
|
#define BLOCK_END 0xFFFFFFFF /* Last image block */
|
2008-08-21 18:27:52 -04:00
|
|
|
#define TEXT_END 0x1A /* End of text header */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* PDA == Production Data Area
|
|
|
|
*
|
|
|
|
* In principle, the max. size of the PDA is is 4096 words. Currently,
|
|
|
|
* however, only about 500 bytes of this area are used.
|
|
|
|
*
|
|
|
|
* Some USB implementations can't handle sizes in excess of 1016. Note
|
|
|
|
* that PDA is not actually used in those USB environments, but may be
|
|
|
|
* retrieved by common code.
|
|
|
|
*/
|
|
|
|
#define MAX_PDA_SIZE 1000
|
|
|
|
|
|
|
|
/* Limit the amout we try to download in a single shot.
|
|
|
|
* Size is in bytes.
|
|
|
|
*/
|
|
|
|
#define MAX_DL_SIZE 1024
|
|
|
|
#define LIMIT_PROGRAM_SIZE 0
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The following structures have little-endian fields denoted by
|
|
|
|
* the leading underscore. Don't access them directly - use inline
|
|
|
|
* functions defined below.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The binary image to be downloaded consists of series of data blocks.
|
|
|
|
* Each block has the following structure.
|
|
|
|
*/
|
|
|
|
struct dblock {
|
|
|
|
__le32 addr; /* adapter address where to write the block */
|
|
|
|
__le16 len; /* length of the data only, in bytes */
|
|
|
|
char data[0]; /* data to be written */
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Plug Data References are located in in the image after the last data
|
|
|
|
* block. They refer to areas in the adapter memory where the plug data
|
|
|
|
* items with matching ID should be written.
|
|
|
|
*/
|
|
|
|
struct pdr {
|
|
|
|
__le32 id; /* record ID */
|
|
|
|
__le32 addr; /* adapter address where to write the data */
|
|
|
|
__le32 len; /* expected length of the data, in bytes */
|
|
|
|
char next[0]; /* next PDR starts here */
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Plug Data Items are located in the EEPROM read from the adapter by
|
|
|
|
* primary firmware. They refer to the device-specific data that should
|
|
|
|
* be plugged into the secondary firmware.
|
|
|
|
*/
|
|
|
|
struct pdi {
|
|
|
|
__le16 len; /* length of ID and data, in words */
|
|
|
|
__le16 id; /* record ID */
|
|
|
|
char data[0]; /* plug data */
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/*** FW data block access functions ***/
|
|
|
|
|
2008-08-21 18:27:51 -04:00
|
|
|
static inline u32
|
|
|
|
dblock_addr(const struct dblock *blk)
|
|
|
|
{
|
|
|
|
return le32_to_cpu(blk->addr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline u32
|
|
|
|
dblock_len(const struct dblock *blk)
|
|
|
|
{
|
|
|
|
return le16_to_cpu(blk->len);
|
|
|
|
}
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/*** PDR Access functions ***/
|
|
|
|
|
2008-08-21 18:27:51 -04:00
|
|
|
static inline u32
|
|
|
|
pdr_id(const struct pdr *pdr)
|
|
|
|
{
|
|
|
|
return le32_to_cpu(pdr->id);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline u32
|
|
|
|
pdr_addr(const struct pdr *pdr)
|
|
|
|
{
|
|
|
|
return le32_to_cpu(pdr->addr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline u32
|
|
|
|
pdr_len(const struct pdr *pdr)
|
|
|
|
{
|
|
|
|
return le32_to_cpu(pdr->len);
|
|
|
|
}
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/*** PDI Access functions ***/
|
|
|
|
|
2008-08-21 18:27:51 -04:00
|
|
|
static inline u32
|
|
|
|
pdi_id(const struct pdi *pdi)
|
|
|
|
{
|
|
|
|
return le16_to_cpu(pdi->id);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Return length of the data only, in bytes */
|
|
|
|
static inline u32
|
|
|
|
pdi_len(const struct pdi *pdi)
|
|
|
|
{
|
|
|
|
return 2 * (le16_to_cpu(pdi->len) - 1);
|
|
|
|
}
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/*** Hermes AUX control ***/
|
|
|
|
|
2008-08-21 18:27:51 -04:00
|
|
|
static inline void
|
2008-08-21 18:27:52 -04:00
|
|
|
hermes_aux_setaddr(hermes_t *hw, u32 addr)
|
2008-08-21 18:27:51 -04:00
|
|
|
{
|
|
|
|
hermes_write_reg(hw, HERMES_AUXPAGE, (u16) (addr >> 7));
|
|
|
|
hermes_write_reg(hw, HERMES_AUXOFFSET, (u16) (addr & 0x7F));
|
|
|
|
}
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
static inline int
|
|
|
|
hermes_aux_control(hermes_t *hw, int enabled)
|
2008-08-21 18:27:51 -04:00
|
|
|
{
|
2008-08-21 18:27:52 -04:00
|
|
|
int desired_state = enabled ? HERMES_AUX_ENABLED : HERMES_AUX_DISABLED;
|
|
|
|
int action = enabled ? HERMES_AUX_ENABLE : HERMES_AUX_DISABLE;
|
2008-08-21 18:27:51 -04:00
|
|
|
int i;
|
|
|
|
|
|
|
|
/* Already open? */
|
2008-08-21 18:27:52 -04:00
|
|
|
if (hermes_read_reg(hw, HERMES_CONTROL) == desired_state)
|
2008-08-21 18:27:51 -04:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
hermes_write_reg(hw, HERMES_PARAM0, HERMES_AUX_PW0);
|
|
|
|
hermes_write_reg(hw, HERMES_PARAM1, HERMES_AUX_PW1);
|
|
|
|
hermes_write_reg(hw, HERMES_PARAM2, HERMES_AUX_PW2);
|
2008-08-21 18:27:52 -04:00
|
|
|
hermes_write_reg(hw, HERMES_CONTROL, action);
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
for (i = 0; i < 20; i++) {
|
|
|
|
udelay(10);
|
|
|
|
if (hermes_read_reg(hw, HERMES_CONTROL) ==
|
2008-08-21 18:27:52 -04:00
|
|
|
desired_state)
|
2008-08-21 18:27:51 -04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return -EBUSY;
|
|
|
|
}
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/*** Plug Data Functions ***/
|
|
|
|
|
2008-08-21 18:27:51 -04:00
|
|
|
/*
|
|
|
|
* Scan PDR for the record with the specified RECORD_ID.
|
|
|
|
* If it's not found, return NULL.
|
|
|
|
*/
|
|
|
|
static struct pdr *
|
2008-08-21 18:27:52 -04:00
|
|
|
hermes_find_pdr(struct pdr *first_pdr, u32 record_id)
|
2008-08-21 18:27:51 -04:00
|
|
|
{
|
|
|
|
struct pdr *pdr = first_pdr;
|
2008-08-21 18:27:52 -04:00
|
|
|
void *end = (void *)first_pdr + MAX_PDA_SIZE;
|
2008-08-21 18:27:51 -04:00
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
while (((void *)pdr < end) &&
|
|
|
|
(pdr_id(pdr) != PDI_END)) {
|
2008-08-21 18:27:51 -04:00
|
|
|
/*
|
|
|
|
* PDR area is currently not terminated by PDI_END.
|
|
|
|
* It's followed by CRC records, which have the type
|
|
|
|
* field where PDR has length. The type can be 0 or 1.
|
|
|
|
*/
|
|
|
|
if (pdr_len(pdr) < 2)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
/* If the record ID matches, we are done */
|
|
|
|
if (pdr_id(pdr) == record_id)
|
|
|
|
return pdr;
|
|
|
|
|
|
|
|
pdr = (struct pdr *) pdr->next;
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Process one Plug Data Item - find corresponding PDR and plug it */
|
|
|
|
static int
|
2008-08-21 18:27:52 -04:00
|
|
|
hermes_plug_pdi(hermes_t *hw, struct pdr *first_pdr, const struct pdi *pdi)
|
2008-08-21 18:27:51 -04:00
|
|
|
{
|
|
|
|
struct pdr *pdr;
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/* Find the PDR corresponding to this PDI */
|
|
|
|
pdr = hermes_find_pdr(first_pdr, pdi_id(pdi));
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
/* No match is found, safe to ignore */
|
|
|
|
if (!pdr)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
/* Lengths of the data in PDI and PDR must match */
|
|
|
|
if (pdi_len(pdi) != pdr_len(pdr))
|
|
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
/* do the actual plugging */
|
2008-08-21 18:27:52 -04:00
|
|
|
hermes_aux_setaddr(hw, pdr_addr(pdr));
|
2008-08-21 18:27:51 -04:00
|
|
|
hermes_write_bytes(hw, HERMES_AUXDATA, pdi->data, pdi_len(pdi));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Read PDA from the adapter */
|
2008-08-21 18:27:52 -04:00
|
|
|
int hermes_read_pda(hermes_t *hw,
|
|
|
|
__le16 *pda,
|
|
|
|
u32 pda_addr,
|
|
|
|
u16 pda_len,
|
|
|
|
int use_eeprom) /* can we get this into hw? */
|
2008-08-21 18:27:51 -04:00
|
|
|
{
|
|
|
|
int ret;
|
2008-08-21 18:27:52 -04:00
|
|
|
u16 pda_size;
|
|
|
|
u16 data_len = pda_len;
|
|
|
|
__le16 *data = pda;
|
2008-08-21 18:27:51 -04:00
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
if (use_eeprom) {
|
|
|
|
/* PDA of spectrum symbol is in eeprom */
|
|
|
|
|
|
|
|
/* Issue command to read EEPROM */
|
|
|
|
ret = hermes_docmd_wait(hw, HERMES_CMD_READMIF, 0, NULL);
|
|
|
|
if (ret)
|
|
|
|
return ret;
|
|
|
|
}
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
/* Open auxiliary port */
|
2008-08-21 18:27:52 -04:00
|
|
|
ret = hermes_aux_control(hw, 1);
|
|
|
|
printk(KERN_DEBUG PFX "AUX enable returned %d\n", ret);
|
2008-08-21 18:27:51 -04:00
|
|
|
if (ret)
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
/* read PDA from EEPROM */
|
2008-08-21 18:27:52 -04:00
|
|
|
hermes_aux_setaddr(hw, pda_addr);
|
|
|
|
hermes_read_words(hw, HERMES_AUXDATA, data, data_len / 2);
|
|
|
|
|
|
|
|
/* Close aux port */
|
|
|
|
ret = hermes_aux_control(hw, 0);
|
|
|
|
printk(KERN_DEBUG PFX "AUX disable returned %d\n", ret);
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
/* Check PDA length */
|
|
|
|
pda_size = le16_to_cpu(pda[0]);
|
2008-08-21 18:27:52 -04:00
|
|
|
printk(KERN_DEBUG PFX "Actual PDA length %d, Max allowed %d\n",
|
|
|
|
pda_size, pda_len);
|
2008-08-21 18:27:51 -04:00
|
|
|
if (pda_size > pda_len)
|
|
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2008-08-21 18:27:52 -04:00
|
|
|
EXPORT_SYMBOL(hermes_read_pda);
|
2008-08-21 18:27:51 -04:00
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/* Parse PDA and write the records into the adapter
|
|
|
|
*
|
|
|
|
* Attempt to write every records that is in the specified pda
|
|
|
|
* which also has a valid production data record for the firmware.
|
|
|
|
*/
|
|
|
|
int hermes_apply_pda(hermes_t *hw,
|
|
|
|
const char *first_pdr,
|
|
|
|
const __le16 *pda)
|
2008-08-21 18:27:51 -04:00
|
|
|
{
|
|
|
|
int ret;
|
2008-08-21 18:27:52 -04:00
|
|
|
const struct pdi *pdi;
|
|
|
|
struct pdr *pdr;
|
2008-08-21 18:27:51 -04:00
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
pdr = (struct pdr *) first_pdr;
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
/* Go through every PDI and plug them into the adapter */
|
2008-08-21 18:27:52 -04:00
|
|
|
pdi = (const struct pdi *) (pda + 2);
|
2008-08-21 18:27:51 -04:00
|
|
|
while (pdi_id(pdi) != PDI_END) {
|
2008-08-21 18:27:52 -04:00
|
|
|
ret = hermes_plug_pdi(hw, pdr, pdi);
|
2008-08-21 18:27:51 -04:00
|
|
|
if (ret)
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
/* Increment to the next PDI */
|
2008-08-21 18:27:52 -04:00
|
|
|
pdi = (const struct pdi *) &pdi->data[pdi_len(pdi)];
|
2008-08-21 18:27:51 -04:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2008-08-21 18:27:52 -04:00
|
|
|
EXPORT_SYMBOL(hermes_apply_pda);
|
|
|
|
|
|
|
|
/* Identify the total number of bytes in all blocks
|
|
|
|
* including the header data.
|
|
|
|
*/
|
|
|
|
size_t
|
|
|
|
hermes_blocks_length(const char *first_block)
|
|
|
|
{
|
|
|
|
const struct dblock *blk = (const struct dblock *) first_block;
|
|
|
|
int total_len = 0;
|
|
|
|
int len;
|
|
|
|
|
|
|
|
/* Skip all blocks to locate Plug Data References
|
|
|
|
* (Spectrum CS) */
|
|
|
|
while (dblock_addr(blk) != BLOCK_END) {
|
|
|
|
len = dblock_len(blk);
|
|
|
|
total_len += sizeof(*blk) + len;
|
|
|
|
blk = (struct dblock *) &blk->data[len];
|
|
|
|
}
|
|
|
|
|
|
|
|
return total_len;
|
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(hermes_blocks_length);
|
|
|
|
|
|
|
|
/*** Hermes programming ***/
|
2008-08-21 18:27:51 -04:00
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
/* Program the data blocks */
|
|
|
|
int hermes_program(hermes_t *hw, const char *first_block, const char *end)
|
2008-08-21 18:27:51 -04:00
|
|
|
{
|
|
|
|
const struct dblock *blk;
|
|
|
|
u32 blkaddr;
|
|
|
|
u32 blklen;
|
2008-08-21 18:27:52 -04:00
|
|
|
#if LIMIT_PROGRAM_SIZE
|
|
|
|
u32 addr;
|
|
|
|
u32 len;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
blk = (const struct dblock *) first_block;
|
|
|
|
|
|
|
|
if ((const char *) blk > (end - sizeof(*blk)))
|
|
|
|
return -EIO;
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
blkaddr = dblock_addr(blk);
|
|
|
|
blklen = dblock_len(blk);
|
|
|
|
|
2008-08-21 18:27:52 -04:00
|
|
|
while ((blkaddr != BLOCK_END) &&
|
|
|
|
(((const char *) blk + blklen) <= end)) {
|
|
|
|
printk(KERN_DEBUG PFX
|
|
|
|
"Programming block of length %d to address 0x%08x\n",
|
|
|
|
blklen, blkaddr);
|
|
|
|
|
|
|
|
#if !LIMIT_PROGRAM_SIZE
|
|
|
|
/* wl_lkm driver splits this into writes of 2000 bytes */
|
|
|
|
hermes_aux_setaddr(hw, blkaddr);
|
2008-08-21 18:27:51 -04:00
|
|
|
hermes_write_bytes(hw, HERMES_AUXDATA, blk->data,
|
|
|
|
blklen);
|
2008-08-21 18:27:52 -04:00
|
|
|
#else
|
|
|
|
len = (blklen < MAX_DL_SIZE) ? blklen : MAX_DL_SIZE;
|
|
|
|
addr = blkaddr;
|
|
|
|
|
|
|
|
while (addr < (blkaddr + blklen)) {
|
|
|
|
printk(KERN_DEBUG PFX
|
|
|
|
"Programming subblock of length %d "
|
|
|
|
"to address 0x%08x. Data @ %p\n",
|
|
|
|
len, addr, &blk->data[addr - blkaddr]);
|
|
|
|
|
|
|
|
hermes_aux_setaddr(hw, addr);
|
|
|
|
hermes_write_bytes(hw, HERMES_AUXDATA,
|
|
|
|
&blk->data[addr - blkaddr],
|
|
|
|
len);
|
|
|
|
|
|
|
|
addr += len;
|
|
|
|
len = ((blkaddr + blklen - addr) < MAX_DL_SIZE) ?
|
|
|
|
(blkaddr + blklen - addr) : MAX_DL_SIZE;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
blk = (const struct dblock *) &blk->data[blklen];
|
|
|
|
|
|
|
|
if ((const char *) blk > (end - sizeof(*blk)))
|
|
|
|
return -EIO;
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
blkaddr = dblock_addr(blk);
|
|
|
|
blklen = dblock_len(blk);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2008-08-21 18:27:52 -04:00
|
|
|
EXPORT_SYMBOL(hermes_program);
|
2008-08-21 18:27:51 -04:00
|
|
|
|
|
|
|
static int __init init_hermes_dld(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void __exit exit_hermes_dld(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
module_init(init_hermes_dld);
|
|
|
|
module_exit(exit_hermes_dld);
|