[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#446028: ITP: tg3dfsg -- firmware free Broadcom Tigon3 network driver

On 2007-10-10, Bastian Blank <waldi@debian.org> wrote:
> The attached patch should apply on the pruned version.

Applies but does not compile:

tg3.c: In function â??tg3_reset_hwâ??:
tg3.c:5399: error: â??TG3_TSO5_FW_TEXT_LENâ?? undeclared (first use in this function)
tg3.c:5399: error: (Each undeclared identifier is reported only once
tg3.c:5399: error: for each function it appears in.)
tg3.c:5400: error: â??TG3_TSO5_FW_RODATA_LENâ?? undeclared (first use in this function)
tg3.c:5401: error: â??TG3_TSO5_FW_DATA_LENâ?? undeclared (first use in this function)
tg3.c:5402: error: â??TG3_TSO5_FW_SBSS_LENâ?? undeclared (first use in this function)
tg3.c:5403: error: â??TG3_TSO5_FW_BSS_LENâ?? undeclared (first use in this function)

The offending code is:

        /* Initialize MBUF/DESC pool. */
        if (tp->tg3_flags2 & TG3_FLG2_5750_PLUS) {
                /* Do nothing.  */
        } else if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705) {
        else if (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) {
                int fw_len;

                fw_len = (TG3_TSO5_FW_TEXT_LEN +
                          TG3_TSO5_FW_RODATA_LEN +
                          TG3_TSO5_FW_DATA_LEN +
                          TG3_TSO5_FW_SBSS_LEN +
                fw_len = (fw_len + (0x80 - 1)) & ~(0x80 - 1);
                     NIC_SRAM_MBUF_POOL_BASE5705 + fw_len);
                     NIC_SRAM_MBUF_POOL_SIZE5705 - fw_len - 0xa00);

Robert Edmonds

Reply to: