Skip to content

Commit

Permalink
Update yield driver with output unification
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Oct 4, 2023
1 parent d40b754 commit b63daf0
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 533 deletions.
1 change: 0 additions & 1 deletion drivers/cartesi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ config CARTESI_YIELD_DRIVER
config CARTESI_ROLLUP_DRIVER
bool "Cartesi Machine Rollup Device"
depends on CARTESI_MACHINE
depends on CRYPTO_KECCAK
default y
help
Cartesi Machine Rollup Device
Expand Down
2 changes: 1 addition & 1 deletion drivers/cartesi/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
obj-$(CONFIG_CARTESI_YIELD_DRIVER) += yield.o libyield.o
obj-$(CONFIG_CARTESI_ROLLUP_DRIVER) += rollup.o libyield.o libstream256.o
obj-$(CONFIG_CARTESI_ROLLUP_DRIVER) += rollup.o libyield.o
107 changes: 0 additions & 107 deletions drivers/cartesi/libstream256.c

This file was deleted.

31 changes: 0 additions & 31 deletions drivers/cartesi/libstream256.h

This file was deleted.

6 changes: 2 additions & 4 deletions drivers/cartesi/libyield.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ static int _yield_validate(u64 dev, u64 cmd, u64 reason)
if (reason != HTIF_YIELD_REASON_PROGRESS &&
reason != HTIF_YIELD_REASON_RX_ACCEPTED &&
reason != HTIF_YIELD_REASON_RX_REJECTED &&
reason != HTIF_YIELD_REASON_TX_VOUCHER &&
reason != HTIF_YIELD_REASON_TX_NOTICE &&
reason != HTIF_YIELD_REASON_TX_REPORT &&
reason != HTIF_YIELD_REASON_TX_EXCEPTION) {
reason != HTIF_YIELD_REASON_TX_OUTPUT &&
reason != HTIF_YIELD_REASON_TX_VERIFIABLE_OUTPUT) {
return -EINVAL;
}

Expand Down
Loading

0 comments on commit b63daf0

Please sign in to comment.