mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
Previously the Producer and Consumer interfaces tracked the Consumer and Producer respectively at the other end of the queue that they interacted with. This was done to avoid modifying the queue implementation, but resulted in a rougher interface that required additional initialization steps and prevented alternative configurations; many producers and one consumer for example. This commit uses the new queue policies to track this information. The new direct policy behaves as the old producer and consumers did. Now the producers and consumers are just named references to the queue that they work on and a convenient location for a notification callback when the queue is updated in a way that is relevent to the producer or consumer. All users of Producer and Consumer have been updated including the stream adaptors which are in use by the echo test code and the mcdp28x0 driver. Use of the stream adaptors has also been simplified. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Manual testing of Ryu (P5) and discovery board echo task Change-Id: I704be6378a31b4e20f5063295eff9943e4900409 Reviewed-on: https://chromium-review.googlesource.com/271792 Reviewed-by: Anton Staaf <robotboy@chromium.org> Commit-Queue: Anton Staaf <robotboy@chromium.org> Trybot-Ready: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org>
100 lines
4.3 KiB
Makefile
100 lines
4.3 KiB
Makefile
# -*- makefile -*-
|
|
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# Common files build
|
|
#
|
|
|
|
common-y=util.o
|
|
common-y+=version.o printf.o queue.o queue_policies.o
|
|
|
|
common-$(CONFIG_ADC)+=adc.o
|
|
common-$(CONFIG_ALS)+=als.o
|
|
common-$(CONFIG_AP_HANG_DETECT)+=ap_hang_detect.o
|
|
common-$(CONFIG_BACKLIGHT_LID)+=backlight_lid.o
|
|
# TODO(crosbug.com/p/23821): Why do these include battery_common but
|
|
# the other batteries don't? Perhaps should use CONFIG_CMD_BATTERY
|
|
# instead, since all that's in battery.c is the battery console
|
|
# command?
|
|
common-$(CONFIG_BATTERY_BQ27541)+=battery.o
|
|
common-$(CONFIG_BATTERY_BQ27621)+=battery.o
|
|
common-$(CONFIG_BATTERY_SMART)+=battery.o
|
|
common-$(CONFIG_BUTTON_COUNT)+=button.o
|
|
common-$(CONFIG_CAPSENSE)+=capsense.o
|
|
common-$(CONFIG_CASE_CLOSED_DEBUG)+=case_closed_debug.o
|
|
common-$(CONFIG_CHARGE_MANAGER)+=charge_manager.o
|
|
common-$(CONFIG_CHARGE_RAMP)+=charge_ramp.o
|
|
common-$(CONFIG_CHARGER)+=charger.o
|
|
common-$(CONFIG_CHARGER_V1)+=charge_state_v1.o
|
|
common-$(CONFIG_CHARGER_V2)+=charge_state_v2.o
|
|
# TODO(crosbug.com/p/23815): This is really the charge state machine
|
|
# for ARM, not the charger driver for the tps65090. Rename.
|
|
common-$(CONFIG_CHARGER_TPS65090)+=pmu_tps65090_charger.o
|
|
common-$(CONFIG_CMD_I2CWEDGE)+=i2c_wedge.o
|
|
common-$(CONFIG_COMMON_GPIO)+=gpio.o
|
|
common-$(CONFIG_COMMON_PANIC_OUTPUT)+=panic_output.o
|
|
common-$(CONFIG_COMMON_RUNTIME)+=hooks.o main.o system.o shared_mem.o
|
|
common-$(CONFIG_COMMON_TIMER)+=timer.o
|
|
common-$(CONFIG_CRC8)+= crc8.o
|
|
common-$(CONFIG_PMU_POWERINFO)+=pmu_tps65090_powerinfo.o
|
|
common-$(CONFIG_PMU_TPS65090)+=pmu_tps65090.o
|
|
common-$(CONFIG_EOPTION)+=eoption.o
|
|
common-$(CONFIG_EXTPOWER_FALCO)+=extpower_falco.o
|
|
common-$(CONFIG_EXTPOWER_GPIO)+=extpower_gpio.o
|
|
common-$(CONFIG_EXTPOWER_SNOW)+=extpower_snow.o
|
|
common-$(CONFIG_EXTPOWER_SPRING)+=extpower_spring.o
|
|
common-$(CONFIG_FANS)+=fan.o
|
|
common-$(CONFIG_FLASH)+=flash.o
|
|
common-$(CONFIG_FMAP)+=fmap.o
|
|
common-$(CONFIG_GESTURE_DETECTION)+=gesture.o
|
|
common-$(CONFIG_HOSTCMD_EVENTS)+=host_event_commands.o
|
|
common-$(CONFIG_I2C)+=i2c.o
|
|
common-$(CONFIG_I2C_ARBITRATION)+=i2c_arbitration.o
|
|
common-$(CONFIG_INDUCTIVE_CHARGING)+=inductive_charging.o
|
|
common-$(CONFIG_KEYBOARD_PROTOCOL_8042)+=keyboard_8042.o
|
|
common-$(CONFIG_KEYBOARD_PROTOCOL_MKBP)+=keyboard_mkbp.o
|
|
common-$(CONFIG_KEYBOARD_TEST)+=keyboard_test.o
|
|
common-$(CONFIG_LED_COMMON)+=led_common.o
|
|
common-$(CONFIG_LED_POLICY_STD)+=led_policy_std.o
|
|
common-$(CONFIG_LID_ANGLE)+=motion_lid.o
|
|
common-$(CONFIG_LID_ANGLE_KEY_SCAN)+=lid_angle.o
|
|
common-$(CONFIG_LID_SWITCH)+=lid_switch.o
|
|
common-$(CONFIG_LPC)+=acpi.o port80.o
|
|
common-$(CONFIG_MKBP_EVENT)+=mkbp_event.o
|
|
common-$(CONFIG_ONEWIRE)+=onewire.o
|
|
common-$(CONFIG_POWER_BUTTON)+=power_button.o
|
|
common-$(CONFIG_POWER_BUTTON_X86)+=power_button_x86.o
|
|
common-$(CONFIG_PSTORE)+=pstore_commands.o
|
|
common-$(CONFIG_PWM)+=pwm.o
|
|
common-$(CONFIG_PWM_KBLIGHT)+=pwm_kblight.o
|
|
common-$(CONFIG_RSA)+=rsa.o
|
|
common-$(CONFIG_RWSIG)+=rwsig.o
|
|
common-$(CONFIG_SHA1)+=sha1.o
|
|
common-$(CONFIG_SHA256)+=sha256.o
|
|
common-$(CONFIG_SMBUS)+= smbus.o
|
|
common-$(CONFIG_SOFTWARE_CLZ)+=clz.o
|
|
common-$(CONFIG_SPI_FLASH)+=spi_flash.o spi_flash_reg.o
|
|
common-$(CONFIG_STREAM)+=in_stream.o out_stream.o stream_adaptor.o
|
|
common-$(CONFIG_SWITCH)+=switch.o
|
|
common-$(CONFIG_SW_CRC)+=crc.o
|
|
common-$(CONFIG_TEMP_SENSOR)+=temp_sensor.o thermal.o throttle_ap.o
|
|
common-$(CONFIG_USB_PORT_POWER_DUMB)+=usb_port_power_dumb.o
|
|
common-$(CONFIG_USB_PORT_POWER_SMART)+=usb_port_power_smart.o
|
|
common-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_protocol.o usb_pd_policy.o
|
|
common-$(CONFIG_USB_PD_LOGGING)+=pd_log.o
|
|
common-$(CONFIG_USB_PD_TCPC)+=usb_pd_tcpc.o
|
|
common-$(CONFIG_USB_PD_TCPM_STUB)+=usb_pd_tcpm_stub.o
|
|
common-$(CONFIG_USB_PD_TCPM_TCPCI)+=usb_pd_tcpm.o
|
|
common-$(CONFIG_VBOOT_HASH)+=sha256.o vboot_hash.o
|
|
common-$(CONFIG_WIRELESS)+=wireless.o
|
|
common-$(HAS_TASK_CHIPSET)+=chipset.o
|
|
common-$(HAS_TASK_CONSOLE)+=console.o console_output.o uart_buffering.o
|
|
common-$(HAS_TASK_CONSOLE)+=memory_commands.o
|
|
common-$(HAS_TASK_HOSTCMD)+=host_command.o
|
|
common-$(HAS_TASK_PDCMD)+=host_command_master.o host_command_pd.o
|
|
common-$(HAS_TASK_KEYSCAN)+=keyboard_scan.o
|
|
common-$(HAS_TASK_LIGHTBAR)+=lb_common.o lightbar.o
|
|
common-$(HAS_TASK_MOTIONSENSE)+=motion_sense.o math_util.o
|
|
common-$(TEST_BUILD)+=test_util.o
|