From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] dfu: generic backend parts
Date: Sun, 8 Jan 2012 00:13:36 -0500 [thread overview]
Message-ID: <201201080013.37535.vapier@gentoo.org> (raw)
In-Reply-To: <1320832343-21369-3-git-send-email-andrzej.p@samsung.com>
On Wednesday 09 November 2011 04:52:21 Andrzej Pietrasiewicz wrote:
> --- /dev/null
> +++ b/drivers/usb/dfu/Makefile
>
> +ifdef CONFIG_MMC
> +COBJS-y += mmc.o
> +endif
> +
> +ifdef CONFIG_CMD_FAT
> +COBJS-y += fat.o
> +endif
COBJS-$(CONFIG_XXX) += foo.o
> --- /dev/null
> +++ b/drivers/usb/dfu/fat.c
> @@ -0,0 +1,77 @@
> +#include <common.h>
> +#include <fat.h>
> +#include <dfu_backend.h>
missing intro comment block
> +inline int set_fat_part_num(int pnum)
there seems to be a lot of funcs in this file and others that have misplaced
"inline" markings
> --- /dev/null
> +++ b/include/dfu_backend.h
>
> +extern void board_dfu_init(void);
> +extern int board_dfu_cleanup(void);
> +extern int usb_gadget_handle_interrupts(void);
> +
> +extern int read_mmc(void *buf, unsigned int len, unsigned long from);
> +extern int write_mmc(void *buf, unsigned int len, unsigned long from);
> +
> +extern block_dev_desc_t *set_fat_dev(block_dev_desc_t *d);
> +extern int set_fat_part_num(int pnum);
> +extern const char *set_fat_filename(const char *fn);
> +extern int read_fat(void *buf, unsigned int len, unsigned long from);
> +extern int write_fat(void *buf, unsigned int len, unsigned long from);
> +
> +extern int read_mbr(struct mmc *mmc, struct mbr_part_data *pd, int
> *extended_lba, int mmc_mbr_dev); +
> +extern int read_block(void *ctx, unsigned int n, void *buf);
> +extern int write_block(void *ctx, unsigned int n, void *buf);
> +extern int generic_prepare(void *ctx, u8 mode);
> +extern int generic_finish(void *ctx, u8 mode);
API needs to be namespaced here with like "dfu_" prefixes
> --- /dev/null
> +++ b/include/mbr.h
file needs protection against multiple inclusion
> +void set_mbr_dev(int dev);
> +void set_mbr_info(char *ramaddr, unsigned int len, unsigned int reserved);
> +void set_mbr_table(unsigned int start_addr, int parts,
> + unsigned int *blocks, unsigned int *part_offset);
> +int get_mbr_table(unsigned int *part_offset);
seems like you declare funcs here that aren't actually defined ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120108/d4a5dfd1/attachment.pgp>
next prev parent reply other threads:[~2012-01-08 5:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 9:52 [U-Boot] [PATCH v2 0/4] DFU initial implementation Andrzej Pietrasiewicz
2011-11-09 9:52 ` [U-Boot] [PATCH 1/4] dfu: protocol " Andrzej Pietrasiewicz
2011-11-09 9:52 ` [U-Boot] [PATCH 2/4] dfu: generic backend parts Andrzej Pietrasiewicz
2012-01-08 5:13 ` Mike Frysinger [this message]
2012-01-09 7:50 ` Andrzej Pietrasiewicz
2012-01-09 17:26 ` Mike Frysinger
2012-03-18 18:49 ` Wolfgang Denk
2012-04-03 14:56 ` Stefan Schmidt
2012-04-03 15:04 ` [U-Boot] [REFERENCE DON'T APPLY 1/3] dfu: Add default value for bwPollTimeout Stefan Schmidt
2012-04-03 15:04 ` [U-Boot] [REFERENCE DON'T APPLY 2/3] usb/gadget: Add Device Firmware Upgrade (DFU) support Stefan Schmidt
2012-04-03 15:04 ` [U-Boot] [REFERENCE DON'T APPLY 3/3] beagle: Enable DFU support with stub functions for now Stefan Schmidt
2012-04-06 0:18 ` [U-Boot] [REFERENCE DON'T APPLY 1/3] dfu: Add default value for bwPollTimeout Marek Vasut
2012-04-06 3:35 ` Mike Frysinger
2012-04-06 13:06 ` Marek Vasut
2012-04-21 14:30 ` Stefan Schmidt
2012-04-21 15:38 ` Marek Vasut
2012-04-23 7:27 ` Lukasz Majewski
2012-04-23 9:38 ` Marek Vasut
2012-04-24 19:40 ` Stefan Schmidt
2012-04-21 14:28 ` Stefan Schmidt
2011-11-09 9:52 ` [U-Boot] [PATCH 3/4] dfu: command implementation Andrzej Pietrasiewicz
2011-11-09 9:52 ` [U-Boot] [PATCH 4/4] dfu: target-specific implementation for Goni Andrzej Pietrasiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201201080013.37535.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.