payload.h 397 B

123456789101112
  1. /* payload: replace the command pack over serial at runtime (see payload.c). */
  2. #ifndef PAYLOAD_H
  3. #define PAYLOAD_H
  4. /* Returns 1 when the serial ring buffer starts with the "KXNP" magic. */
  5. int payload_pending(void);
  6. /* Receive + validate + swap the pack; never returns when the board jumps
  7. * (it does not -- unlike kexec this only replaces /ramfs). */
  8. void program_payload_main(void);
  9. #endif