ixp4xx-npe.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | ixp4xx-npe.c (b5fc3ca3954fd0382bb576a5a295c03a089ac7e3) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Intel IXP4xx Network Processor Engine driver for Linux 4 * 5 * Copyright (C) 2007 Krzysztof Halasa <khc@pm.waw.pl> 6 * 7 * The code is based on publicly available information: 8 * - Intel IXP4xx Developer's Manual and other e-papers --- 505 unchanged lines hidden (view full) --- 514 u32 offset; 515 } *blk; 516 517 struct dl_image { 518 u32 magic; 519 u32 id; 520 u32 size; 521 union { | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Intel IXP4xx Network Processor Engine driver for Linux 4 * 5 * Copyright (C) 2007 Krzysztof Halasa <khc@pm.waw.pl> 6 * 7 * The code is based on publicly available information: 8 * - Intel IXP4xx Developer's Manual and other e-papers --- 505 unchanged lines hidden (view full) --- 514 u32 offset; 515 } *blk; 516 517 struct dl_image { 518 u32 magic; 519 u32 id; 520 u32 size; 521 union { |
522 u32 data[0]; 523 struct dl_block blocks[0]; | 522 DECLARE_FLEX_ARRAY(u32, data); 523 DECLARE_FLEX_ARRAY(struct dl_block, blocks); |
524 }; 525 } *image; 526 527 struct dl_codeblock { 528 u32 npe_addr; 529 u32 size; | 524 }; 525 } *image; 526 527 struct dl_codeblock { 528 u32 npe_addr; 529 u32 size; |
530 u32 data[0]; | 530 u32 data[]; |
531 } *cb; 532 533 int i, j, err, data_size, instr_size, blocks, table_end; 534 u32 cmd; 535 536 if ((err = request_firmware(&fw_entry, name, dev)) != 0) 537 return err; 538 --- 243 unchanged lines hidden --- | 531 } *cb; 532 533 int i, j, err, data_size, instr_size, blocks, table_end; 534 u32 cmd; 535 536 if ((err = request_firmware(&fw_entry, name, dev)) != 0) 537 return err; 538 --- 243 unchanged lines hidden --- |